STPCPY(3POSIX)
π STPCPY(3POSIX) π
okay bestie, so this is STPCPY(3POSIX) β a page from the POSIX Programmer's Manual, and it is short but it's got lore. let's get into it π«Ά
β¨ PROLOG β¨
real talk first, bestie: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ β so go check the corresponding Linux manual page for the actual Linux tea. or, plot twist, the interface might not even be implemented on Linux at all. π
not me reading the prologue before the actual page... it's giving "read the terms and conditions" energy but honestly? necessary.
πΈ NAME πΈ
stpcpy β copy a string and return a pointer to the end of the result
like, it copies the string AND tells you where it ended. multitasking queen. π
π SYNOPSIS π
#include <string.h>
char *stpcpy(char *restrict s1, const char *restrict s2);
note the restrict on both args β that's not decoration, that's a promise. β¨
π¦ DESCRIPTION π¦
Refer to strcpy().
that's it. that's the description. the entire vibe is "girl, go read strcpy()". iconic honestly, it understood the assignment and delegated. π
π COPYRIGHT π
okay so the legal bit, and we're keeping ALL of it because bestie, receipts matter:
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.
and the important part: in the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. the original is the main character, this page is just the group chat recap. π«Ά
the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
lowkey if you spot a typo it's a conversion thing, not a POSIX thing. don't @ the standard, @ the bug reporter. π
that's the whole page, bestie β short and sweet, no notes. π
IEEE/The Open Group, 2017 β mwah, kissies, this was STPCPY(3POSIX), stay hydrated and always null-terminate your strings. πβ¨
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms