XMSTRINGBYTESTREAMLENGTH(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ XmStringByteStreamLength ✨

okay bestie, welcome to the XmStringByteStreamLength page πŸ’– this one's a library call from the Xm crew, and honestly? she's a little one-trick pony but she's good at her trick πŸŽ€


🌸 NAME 🌸

XmStringByteStreamLength β€” a function that returns the size of a string πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Xm/Xm.h>
unsigned int XmStringByteStreamLength (string)
        unsigned char   *string;
(void)

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• XmStringByteStreamLength takes a byte stream format string and hands you back the size, in bytes, of that whole stream β€” and yes, including the header πŸ‘‘

and because that header is always there doing its little header thing, even a NULL string will make XmStringByteStreamLength return a non-zero value. like. it's still counting the header. the header does not care. the header is the main character fr fr 😭

  • string β€” specifies the byte stream format string 🫢

🌈 RETURN VALUES 🌈

returns the size of string, including the header ✨ (yes bestie, the header again. she's obsessed with that header. we love her for it.)


ngl, if you were hoping NULL would get you a nice clean 0, this is your gentle reminder that it will not β€” that header is coming along for the ride whether you like it or not πŸ’€

and that's the whole page, gorgeous 🌸 this one comes to you straight from the Xm library, XmStringByteStreamLength(library call), iconic as ever πŸ‘‘ stay slay, read your headers, and remember: the header is always included πŸ’–βœ¨πŸŽ€