home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
tyc
/
list1714.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-16
|
431b
|
15 lines
/* strrev(), strset(), and strnset(). */
#include <stdio.h>
#include <string.h>
char str[] = "This is the test string.";
main()
{
printf("\nThe original string: %s", str);
printf("\nCalling strrev(): %s", strrev(str));
printf("\nCalling strrev() again: %s", strrev(str));
printf("\nCalling strnset(): %s", strnset(str, '!', 5));
printf("\nCalling strset(): %s", strset(str, '!'));
}