Skip to content

Instantly share code, notes, and snippets.

@Keith-S-Thompson
Created July 11, 2012 03:10
Show Gist options
  • Save Keith-S-Thompson/3087729 to your computer and use it in GitHub Desktop.
Save Keith-S-Thompson/3087729 to your computer and use it in GitHub Desktop.
Small atof demo
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
const char *arg = "10.0";
double d = atof(arg);
printf("d = %f\n", d);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment