scan_xshort(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, this is scan_xshort(3) from the Library Functions Manual, and she parses an unsigned short integer in hexadecimal ASCII representation. that's her whole main character job, no cap. πŸ’…

πŸ¦‹ SYNTAX πŸ¦‹

#include <libowfat/scan.h>

size_t scan_xshort(const char *src,unsigned short *dest);

🌸 DESCRIPTION 🌸

so like, scan_xshort takes src and parses an unsigned short integer in hexadecimal ASCII representation from it, then writes the result into dest. the way she returns the number of bytes read from src? iconic. πŸ”₯

she understands both upper and lower case letters, so she's not gonna be weird about your letter casing. periodt. ✨

⚠️ but listen: scan_xshort does not expect or understand a "0x" prefix. do not come at her with 0x and expect results, bestie. it's not that kind of party. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • fmt_xshort(3) β€” the matching format side, go say hi. πŸ’–

and that's the whole page, fr fr. footer vibes: scan_xshort(3), from the Library Functions Manual, and she said periodt. πŸ’…βœ¨