mirror of
https://github.com/troglobit/libite.git
synced 2026-10-02 05:42:49 +07:00
20 lines
227 B
C
20 lines
227 B
C
#include "../src/strlite.h"
|
|
|
|
int main(void)
|
|
{
|
|
int val;
|
|
|
|
val = atonum("42");
|
|
if (val != 42)
|
|
return 1;
|
|
|
|
if (!string_match("eth1", "eth1234"))
|
|
return 1;
|
|
|
|
if (string_compare("eth1", "eth1234"))
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|
|
|