#include <syslib.h> #include <string.h> main() { char *s="Golden Global View"; char d[20],*p; clrscr(); p=memccpy ( d,s,'x',strlen ( s ) ); if ( p ) { *p='\0'; // MUST Do This printf ( "Char found: %s.\n",d ); } else printf ( "Char not found.\n" ); getchar(); return 0; }
by: 发表于:2018-02-05 10:29:17 顶(0) | 踩(0) 回复
??
回复评论