Casio FX-890P Owner's Manual page 124

Casio personal computer owner's manual
Table of Contents

Advertisement

strcpy()
PURPOSE: Copies the source string into the destination string.
FORMAT:
char *strcpy(dest, source) char *dest, *source;
PARAMETERS:
1. Destination string.
2. Source string.
EXPLANATION:
1. The source string stays untouched.
2. The content of the source string is copied to the memory pointed by the
destination string parameter. Note that no control is made on the memory
available for the destination string. Using strcpy() without enough memory
booked for the destination string may result in an overflow.
3. The returned value is the destination string, and is therefore equal to the first
parameter.
strlen()
PURPOSE: Returns the length of a string.
FORMAT:
int strlen(string) char *string;
PARAMETERS: string
EXPLANATION:
1. The string stays untouched.
2. The returned value is the number of characters in the string. The NULL
character at the end of the string is not included.
124

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Z-1grZ-1

Table of Contents