Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

printf n characters c

// Only 5 characters printed
const char * mystr = "This string is definitely longer than what we want to print.";
printf("Here are first 5 chars only: %.5s
", mystr);
Source by embeddedartistry.com #
 
PREVIOUS NEXT
Tagged: #printf #characters
ADD COMMENT
Topic
Name
1+6 =