GETSN(9)
π 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
- Copyright (c) 2002, 2003 CubeSoft Communications, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms