C Reference String Operation: strcmp()

The function strcmp() compares one string with another string. The function strcmp() returns a integer value.

Usage:

int strcmp( const char * target, const char * source);

If the two strings are equal then zero is returned. More »


Posted in C Reference string.h Functions | Comments Off on C Reference String Operation: strcmp()


C Reference String Operation: strchr()

The function strchr() returns a pointer to the first occurrence of x in a string.

Usage:

char *strchr( const *str, int x);

Note: NULL will be returned if x isn’t found.

strchr() source code example:

More »


Posted in C Reference string.h Functions | 1 Comment


C Reference String Operation: strcat()

The strcat() function concatenates up to n characters of one string onto the end of another string.

Usage:

char * strcat ( char * destination, const char * source ); More »


Posted in C Reference string.h Functions | Comments Off on C Reference String Operation: strcat()


C Reference String Operation: memset()

The function memset() copies x into a buffer y and does this n times.

Usage:

void *memset( void *y, int x, size_t n); More »


Posted in C Reference string.h Functions | Comments Off on C Reference String Operation: memset()


C Reference String Operation: memmove()

The function memmove() copies n characters from source to target.

Usage:

void *memmove(void *target, void *source, size_t count); More »


Posted in C Reference string.h Functions | Comments Off on C Reference String Operation: memmove()


C Reference String Operation: memcpy()

The function memcpy() copies n characters from source to target.

Usage:

void *memcpy(void *target, void *source, size_t count); More »


Posted in C Reference string.h Functions | Comments Off on C Reference String Operation: memcpy()


C Reference String Operation: memcmp()

The function memcmp() compares n bytes of two regions of memory, treating each byte as an unsigned character.

Usage:

More »


Posted in C Reference string.h Functions | Comments Off on C Reference String Operation: memcmp()


C Reference String Operation: memchr()

The memchr() function returns a pointer to the first occurrence of c in the first n bytes of a memory area.

Usage:

More »


Posted in C Reference string.h Functions | Comments Off on C Reference String Operation: memchr()


C Reference Convert to upper case: toupper()

The function toupper() returns a uppercase character of the character that is put in.

toupper() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Convert to upper case: toupper()


C Reference Convert to lower case: tolower()

The function tolower() returns a lowercase character of the character that is put in.

tolower() source code example:

More »


Posted in C Reference ctype.h Functions | 2 Comments