Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c substring

//where we want the word "test" and we know its position in the string
char *buff = "this is a test string";
printf("%.*s", 4, buff + 10);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #substring
ADD COMMENT
Topic
Name
5+1 =