News for hackers. Stuff that matters.
Re:Strlcpy and strlcat added to glibc 2.38 by alcover on Tuesday July 18, 2023 @07:10AM (#36770498)
> Strings in C are 0-terminated char arrays

To be pedantic, they're pointers to char. Nothing more. Calling them array confuses non-C coders. The length is just an unenforced contract and has to be passed.

Re:Strlcpy and strlcat added to glibc 2.38 by TillE on Tuesday July 18, 2023 @10:54AM (#36773398)
It's a pointer to a chunk of memory which contains an array of characters. You pass around the pointer because copying an array is expensive and wasteful.

I think (or hope) the concepts are pretty clear if you understand what a pointer is.