Advertisement
rc-chuah

StrStrI3

Jun 13th, 2022 (edited)
783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <shlwapi.h>
  3.  
  4. int main() {
  5.     wchar_t haystack[] = L"TutorialsPoint";
  6.     wchar_t needle[] = L"Point";
  7.     wchar_t* ret;
  8.     ret = StrStrIW(haystack, needle);
  9.     printf("The Substring Is: %ls\n", ret);
  10.     printf("Press To Enter Continue ... ");
  11.     (void)getchar();
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement