home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
tyc
/
list17_6.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-16
|
309b
|
20 lines
/* The strncat() function. */
#include <stdio.h>
#include <string.h>
char str2[] = "abcdefghijklmnopqrstuvwxyz";
main()
{
char str1[27];
int n;
for (n=1; n < 27; n++)
{
strcpy(str1, "");
strncat(str1, str2, n);
puts(str1);
}
}