| Hauptindex | Abschnitt 3 | English | 日本語 | Optionen |
#include <string.h>char *strcpy(char *dest, const char *src);
char *strncpy(char *dest, const char *src, size_t n);
Die Funktion strncpy() tut dasselbe mit dem Unterschied, daß nur die ersten n Byte von src kopiert werden. Ist kein `\0' innerhalb der ersten n Bytes,so wird das Ergebnis nicht durch `\0' abgeschlossen.
Ist die Länge von src kleiner als n Bytes, so wird dest mit Nullen aufgefüllt.
| 1. Septemper 1996 | STRCPY (3) |
| Hauptindex | Abschnitt 3 | English | 日本語 | Optionen |
Bitte richten Sie Ihre Kommentare zu diesem Handbuch Seite Service, Ben Bullock. Privacy policy.
| “ | Like a classics radio station whose play list spans decades, Unix simultaneously exhibits its mixed and dated heritage. There's Clash-era graphics interfaces; Beatles-era two-letter command names; and systems programs (for example, ps) whose terse and obscure output was designed for slow teletypes; Bing Crosby-era command editing (# and @ are still the default line editing commands), and Scott Joplin-era core dumps. | ” |
| — The Unix Haters' handbook | ||