home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
tyc
/
list17_5.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-16
|
356b
|
24 lines
/* The strcat() function. */
#include <stdio.h>
#include <string.h>
char str1[27] = "a";
char str2[2];
main()
{
int n;
/* Put a null character at the end of str2[]. */
str2[1] = '\0';
for (n = 98; n < 123; n++)
{
str2[0] = n;
strcat(str1, str2);
puts(str1);
}
}