001
04.05.2004, 21:28 Uhr
Pablo
Supertux (Operator)
|
Zitat: |
man pages
NAME strcat, strncat - concatenate two strings
SYNOPSIS #include <string.h>
char *strcat(char *dest, const char *src);
--------------------------------------------------- NAME strcpy, strncpy - copy a string
SYNOPSIS #include <string.h>
char *strcpy(char *dest, const char *src);
|
Bsp:
C++: |
#include <string.h> #include <stdio.h>
int main() { char buffer[100]; strcpy(buffer, "Hello, "); strcat(buffer, "World!"); printf("buffer=%s\n", buffer); return 0; }
|
-- A! Elbereth Gilthoniel! silivren penna míriel o menel aglar elenath, Gilthoniel, A! Elbereth! Dieser Post wurde am 04.05.2004 um 21:28 Uhr von Pablo editiert. |