Mikroc, Memcmp, Memmove – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 304: Memset, Strcat

Advertising
background image

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

296

MikroElektronika: Development tools - Books - Compilers

page

Prototype

void

*memcpy(void *s1, void *s2, int n);

Description

Function copies

n

characters from the object pointed to by

s2

into the object pointed to

by

s1

. Objects may not overlap. Function returns the value of

s1

.

memcmp

Prototype

void

*memmove(void *s1, void *s2, int n);

Description

Function copies

n

characters from the object pointed to by

s2

into the object pointed to

by

s1

. Unlike with

memcpy()

, memory areas

s1

and

s2

may overlap. Function returns

the value of

s1

.

memmove

Prototype

void

*memset(void *s, int c, int n)

Description

Function copies the value of character

c

(converted to

char

) into each of the first

n

characters of the object pointed by

s

. Function returns the value of

s

.

memset

Prototype

char

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

Description

Function appends the string

s2

to the string

s1

, overwriting the null character at the end

of

s1

. Then, a terminating null character is added to the result. Strings may not overlap,

and

s1

must have enough space to store the result. Function returns a resulting string

s1

.

strcat

Advertising
This manual is related to the following products: