Edmonds Community College
Computer Science   

CS &131

- C string functions

#include <string.h>
(for C++ and namespace std, #include <cstring>)
*note:  size_t is generally defined as an unsigned short.


char *strcpy( char *s1, const char *s2)

char *strncpy( char *s1, const char *s2, size_t n)

char *strcat( char *s1, const char *s2)

char *strncat( char *s1, const char *s2, size_t n)

char *strchr( const char *s,  int c)

char *strrchr( const char *s,  int c)

int strcmp( const char *s1, const char *s2)

int strncmp( const char *s1, const char *s2, size_t n)

size_t strspn( char *s1, const char *s2)

size_t strcspn( char *s1, const char *s2)

size_t strlen( const char *s)

char *strpbrk( const char *s1,  const char *s2)

char *strstr( const char *s1,  const char *s2)

char *strtok(char *s1, const char *s2)

index previous  

Computer Science  
Edmonds Community College  
For Further information, contact pbladek@edcc.edu

Copyright©2001-2018 Edmonds Community College