FDUP(3)
β¨ FDUP(3) β NAME β¨
fdup() β returns new file identical to the given file. thatβs the whole vibe, bestie. π
πΈ SYNOPSIS πΈ
okay so hereβs the exact shape of it:
FILE fdup(f)
FILE *f;
π¦ DESCRIPTION π¦
okay so fdup() creates a new file stream that accesses the same file as f. the new file has the same read/write/buffered attributes as the old file β literally matching energy, no cap. and yes, fdup() can be used to simultaneously read from two different positions in a file. iconic behavior. β¨
π RETURNS π
- if itβs successful, it returns the duplicate file. slay. π
- if it could not create the new stream, it returns
NULL. π
π NOTES π
β οΈ bestie, use this call carefully on buffered files that are open for writing. changes made on one stream might be superseded by changes made on the other. so likeβ¦ donβt let the streams fight, okay? π
thatβs the page! Joerg Schilling wrote it, itβs from SchilyΒ΄s LIBRARY FUNCTIONS, dated 2022/09/09, and the manual name is FDUP(3). mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms