2023-06-18 06:39:18 -04:00
|
|
|
main()
|
|
|
|
{
|
|
|
|
local ptr;
|
|
|
|
|
2023-06-18 13:49:21 -04:00
|
|
|
name = "ntoa";
|
2023-06-18 09:08:44 -04:00
|
|
|
|
2023-06-18 13:49:21 -04:00
|
|
|
ptr = ntoa(9000);
|
2023-06-18 09:08:44 -04:00
|
|
|
test_str(ptr, "9000", "");
|
|
|
|
free(ptr);
|
2023-06-18 13:49:21 -04:00
|
|
|
ptr = ntoa(55);
|
2023-06-18 06:39:18 -04:00
|
|
|
test_str(ptr, "55", "");
|
|
|
|
free(ptr);
|
2023-06-18 13:49:21 -04:00
|
|
|
ptr = ntoa(0);
|
2023-06-18 06:39:18 -04:00
|
|
|
test_str(ptr, "0", "");
|
|
|
|
free(ptr);
|
|
|
|
}
|