#include <complex.h>
#include <stdlib.h>
int main() {
   string_t s="3+I*4";

   printf("isnum(\"0x30\") = %d\n", isnum("0x30"));
   printf("isnum(\"abc\") = %d\n", isnum("abc"));
   printf("iswnum(L\"0x30\") = %d\n", iswnum(L"0x30"));
   printf("iswnum(L\"abc\") = %d\n", iswnum(L"abc"));

   printf("iscnum(\"10+I*4\") = %d\n",iscnum(s));
   printf("atoc(s) = %f\n",atoc(s));
   printf("iscnum(\"I*4\") = %d\n",iscnum("I*4"));
   printf("atoc(\"I*4\") = %f\n",atoc("I*4"));
   printf("iscnum(\"complex(1,2)\") = %d\n",iscnum("complex(1,2)"));
   printf("atoc(\"complex(1,2)\") = %f\n",atoc("complex(1,2)"));
   printf("iscnum(\"4\") = %d\n",iscnum("4"));
}

