Skip to content

Instantly share code, notes, and snippets.

@Romain-P
Created January 4, 2018 10:36
Show Gist options
  • Select an option

  • Save Romain-P/62ca11c2fd0ee40119a84c66b2c3472e to your computer and use it in GitHub Desktop.

Select an option

Save Romain-P/62ca11c2fd0ee40119a84c66b2c3472e to your computer and use it in GitHub Desktop.
void main()
{
decimale_op_t dot = {5, 2, 0};
div_t divt = {DECIMALE, &dot};
exec_div(&divt);
printf("got %f\n", ((decimale_op_t *)divt.div_op)->res);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment