repo.or.cz
/
gammu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Translation update done using Pootle.
[gammu.git]
/
tests
/
getint.c
blob
cb8962eb8aa0f85dd98ff514952d3d7d7b529dca
1
/**
2
* Test case for GetInt.
3
*/
4
5
#include
"../helper/cmdline.h"
6
#include <stdlib.h>
7
#include <stdio.h>
8
9
int
main
(
int
argc
,
char
**
argv
)
10
{
11
if
(
argc
!=
2
) {
12
printf
(
"Usage: getint number
\n
"
);
13
exit
(
2
);
14
}
15
printf
(
"Result: %ld
\n
"
,
GetInt
(
argv
[
1
]));
16
return
0
;
17
}