I have a string
Form this string, I want to extract
I am unable to do that with sscanf because of the space between the words. What else can I use?
#include <stdio.h>
char buf_2[50];
int
main()
{
char *buf_1 = "\\\\?\\whats going on";
sscanf(buf_1, "\\\\?\\%s", buf_2);
printf("buf_1 = %s\n", buf_1);
printf("buf_2 = %s\n", buf_2);
printf("Thats all folks... !\n");
return 0;
}
The output of the above program is:
thanks