linux/esptun.c
static void write_uint(int fd, uint32_t x)
{
    char buf[11];
    size_t ptr = sizeof(buf);
    do {
        ptr -= 1;
        buf[ptr] = '0' + (x % 10);
        x /= 10;
    } while (x != 0);
    write_all(fd, (const uint8_t*)&buf[ptr], sizeof(buf) - ptr);
}
/**
 * Write a 32-bit unsigned integer (as ASCII text).
 */
Write a 32-bit unsigned integer (as ASCII text).
Write a 32 - bit unsigned integer ( as ASCII text ) .
static void write_uint(int fd, uint32_t x)
{
    char buf[11];
    size_t ptr = sizeof(buf);
    do {
        ptr -= 1;
        buf[ptr] = '0' + (x % 10);
        x /= 10;
    } while (x != 0);
    write_all(fd, (const uint8_t*)&buf[ptr], sizeof(buf) - ptr);
}
static void write_uint ( int fd , uint32_t x ) { char buf [ 11 ] ; size_t ptr = sizeof ( buf ) ; do { ptr -= 1 ; buf [ ptr ] = ' ' + ( x % 10 ) ; x /= 10 ; } while ( x != 0 ) ; write_all ( fd , ( const uint8_t * ) & buf [ ptr ] , sizeof ( buf ) - ptr ) ; }
Write a 32-bit unsigned integer (as ASCII text).
Write a 32 - bit unsigned integer ( as ASCII text ) .