ICONVLIST(3)
β¨ ICONVLIST(3) β¨
ok so bestie, we're in the Standard C Library (libc, -lc) today and the function we're stanning is iconvlist β the iconv(3) girlies are gonna eat this one UP π
no cap
πΈ NAME πΈ
iconvlist β getting urself a whole list of character encodings that iconv(3) supports π«Ά literally the cheat sheet of every encoding your system fw
π LIBRARY π
Standard C Library (libc, -lc)
β¨ SYNOPSIS β¨
#include <iconv.h>
void
iconvlist(int (*do_one)(unsigned int *count, const char * const *names, void *arg),
void *arg);
ok the signature is lowkey a mouthful but we'll get through it together, promise π§
π¦ DESCRIPTION π¦
so iconvlist() gets u a list of all the character encodings that the iconv(3) call supports. like, every single one your system knows about. iconic behavior honestly π
and here's how it hands them to u: your do_one() callback function gets called, and the args go like this:
countβ gets set to the number of encoding names found (the headcount, iykyk)namesβ the actual list of supported encoding namesargβ this is literally just theargargument u passed toiconvlist()in the first place. it's your little baton to pass custom data back and forth between whoever callediconvlist()and the callback function. main character energy for real π₯
π«Ά heads up bestie: if an error happens,nameswill beNULLwhendo_one()gets called. so pls do a vibe check on that pointer, don't just assume it's valid π
π SEE ALSO π
β STANDARDS β
ok so real talk: the iconvlist function is a non-standard extension, ngl. it first showed up in the GNU implementation, and then FreeBSD 9.0 adopted it for compatibility's sake. so it's not in any standard, she just travels π
πΈ AUTHORS πΈ
this manual page was written by Gabor Kovesdan <gabor@FreeBSD.org> β ty bestie for the docs π«Ά
and that's the whole page diva π β¨
Debian, October 20, 2009 β yeah she's an oldie but a goodie π mwah π
π¦ where this page comes from
- nixpkgs unstable: libiconv 115.100.1
- Copyright (c) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
- Copyright (C) 2001-2004 by the Institute of
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms