Name
      
      wcswcs - find a wide substring 
      
      
      
      
         
         Library
      
      
      
      
      libc.lib
      
      
      
      
         
         Synopsis
      
      
      
      
      
      
      
         
            |  | wchar_t *
               
               
               wcswcs (const wchar_t *wcs1, const wchar_t *wcs2); 
 | 
      
      
         
         Detailed description
      
      
      The
      
      
       wcswcs()
      function locates the first occurrence of the wide-character
      string pointed by
      
      
       wcs1
      (excluding the terminating ’\0’ character in the
      wide-character string pointed by
      
      
       wcs2.
      
      
      
      
         
         Examples
      
      
      
      
      #include <wchar.h>
/* Illustrates how to use wcswcs API */
int example_wcswcs()
{  
  /* source wide character string */
 wchar_t *buf[20] = { L"fkhsdf%%38",L"rtti123123", };
 wchar_t *str  = wcswcs(buf[0],L"");
 wchar_t *str1 = wcswcs(buf[1],L"\0");
 if(wcscmp(str,buf[0]))
   return 1;
 if(wcscmp(str1,buf[1]))
   return 1
 return 0;
}
         
      
      
      
      
         
         Return value
      
      
      The
      
      
       wcswcs()
      on success returns a pointer to the located wide-character string and returns
      a NULL pointer if the wide-charcter string was not found.
      
      
      
      
         If
         
         
          wcs2
         is a wide-character string with length as zero, the function returns
         
         
          wcs1.
         
         
         
      
      
         
         See also
      
      
      
      
      strstr
      
      
      Feedback
For additional information or queries on this page send feedback	
      
      
         
         
         
            
               | © 2005-2007 Nokia  | 
 |