GETSN(9)

πŸ“¦ in nixpkgs unstable

πŸŽ€ GETSN(9) πŸŽ€

okay bestie, welcome to the Kernel Developer's Manual corner of the group chat πŸ’– this one is all about getsn() and it is lowkey iconic for console input, no cap.


✨ NAME ✨

getsn β€” read user input from the console 🫢


🌸 SYNOPSIS 🌸

#include <lib/libkern/libkern.h>

size_t
getsn(char *cp, size_t size);

πŸ’… DESCRIPTION πŸ’…

so like, the getsn() function reads user input from the console and returns on newline ✨ the result gets written into cp, which is assumed to be size bytes long. that's the whole vibe fr fr πŸ’–


⭐ RETURN VALUES ⭐

getsn() returns the total length of the string it tried to create πŸ‘‘ yes, tried β€” that wording is doing main character energy, and we are preserving it exactly πŸ’…


mwah πŸ’‹ β€” source/version: Debian, dated April 25, 2018 πŸŽ€

πŸ“¦ where this page comes from
  • nixpkgs unstable: cvs-export
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms