Posted to tcl by stu at Tue Jun 30 13:38:05 GMT 2015view pretty
#include <stdlib.h> #include <stdio.h> #include <errno.h> int main (int argc, char *argv[]) { char *moo = "1%"; char *cow; double res; res = strtod(moo, &cow); perror(""); printf("res:%e\n",res); printf("moo:%p\n",cow); printf("cow:%p\n",cow); return 0; }