mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Added the sscanf_64 test program.
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15022 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
22
test_programs/sscanf_64.c
Executable file
22
test_programs/sscanf_64.c
Executable file
@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
|
||||
/*extern int __debug_level;*/
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
long long int l;
|
||||
char * arg;
|
||||
|
||||
/*__debug_level = 2;*/
|
||||
|
||||
if(argc > 1)
|
||||
arg = argv[1];
|
||||
else
|
||||
arg = "123456789012";
|
||||
|
||||
sscanf (arg, "%lld", &l);
|
||||
printf ("number = %lld = 0x%llX\n", l, l);
|
||||
|
||||
return(0);
|
||||
}
|
||||
Reference in New Issue
Block a user