|
CP107 LAB 8
LAB 8A OBJECTIVES LAB:
LAB 8 ASSIGNMENT
Starting with the given file, stringfunctions.cpp, student will be writing new function definitions for the 8 string functions listed below. Starting with the sample program, stringfunctions.cpp, make the following modifications: comment out # include <cstring> Change the name of all 7 functions from slightly so you do
not call the string runtime library functions. 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 ); int
strcmp( const char *s1, const char *s2 ); int
strncmp( const char *s1, const char *s2, size_t n ); unsigned
int strlen( const char *s );
|
Copyright (c) Yusuf Family Website 2001 |