#include int main() { void* gmtapi; char* text="GMT"; char* args="-R130/160/40/60 -JM12c -Xa2c -Ya2c -B5/5/swNE ->/proc/cmdline"; struct GMT_OPTION* opts; int ret; gmtapi=GMT_Create_Session(text,2,1,0); opts=GMT_Create_Options(gmtapi,0,args); ret=GMT_Call_Module(gmtapi,"psbasemap",GMT_MODULE_OPT,opts); printf("%i\n",ret); GMT_Destroy_Options(gmtapi,&opts); GMT_Destroy_Session(gmtapi); return 0; }