dect
/
libnl
Archived
13
0
Fork 0
Commit Graph

5 Commits

Author SHA1 Message Date
Коренберг Марк (дома) ab15d06d13 "%llu" replaced with "%" PRIu64
On some architectures, uint64_t is defined as:

typedef unsigned long long int __u64;

on another architectures as:

typedef unsigned long int __u64;

So, according to man 3 printf,
uint64_t should be printed as "%llu" on some architectures, and as "%lu" on another. The same for scanf.

To eliminate that challenge, there is inttypes.h, in which appropriate constants
are defined for current architecture.

32-bit types (and even 16 and 8 bit types) should be printed using such constants if
printed variable defined as uint_XXXt or intXXXt type. But in reality 32-bit and less
types does not gain run-time error (except in scanf), because they pushed to stack as
32-bit values at least. So, I decide not to fix that.
2012-08-30 03:19:04 +06:00
Thomas Graf 8808743839 CLI - Command Line Interface Library
Moved common code in src/ used by CLI tools to src/lib/ for possible use
by other CLI tools. Just link to libnl-cli.{so|la}
2009-12-16 16:20:46 +01:00
Thomas Graf 22f0ece5ac Remove dead code in nl-list-sockets 2008-04-29 10:50:23 +02:00
Thomas Graf 25ccbf1dab Prepare nl-list-sockets for 64bit addresses 2008-04-29 10:48:34 +02:00
Thomas Graf 44d362409d Initial import 2007-09-15 01:28:01 +02:00