str.h (394B)
1 /* str.h - helpers de texto sin stdio (sirven igual en Linux y en la Pico). */ 2 #ifndef COMUN_STR_H 3 #define COMUN_STR_H 4 5 /* Escriben en buf desde pos; devuelven la nueva posicion o -1 si no entra. */ 6 int str_put(char *buf, int n, int pos, const char *s); 7 int str_int(char *buf, int n, int pos, long v); 8 const char *str_scan_int(const char *s, long *out); /* NULL si no hay numero */ 9 10 #endif