mikroC

mikroC - C Compiler for Microchip PIC microcontrollers

making it simple...

strncat

Prototype

char *strncat(char *s1, char *s2, int n);

Description Function appends not more than n characters from the string s2 to s1. The initial character of s2 overwrites the null character at the end of s1. A terminating null character is always appended to the result. Function returns s1.

strncpy

Prototype

char *strncpy(char *s1, char *s2, int n);

Description Function copies not more than n characters from string s2 to s1. The strings may not overlap. If s2 is shorter than n characters, then s1 will be padded out with null characters to make up the difference. Function returns the resulting string s1.

strspn

Prototype

int strspn(char *s1, char *s2);

Description Function returns the length of the maximum initial segment of s1 which consists entirely of characters from s2. The terminating null character character at the end of the string is not compared.

page

 

298

MikroElektronika: Development tools - Books - Compilers