Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C program to sum two integers

Name: Anonymous 2011-06-09 16:55

input:
 stdin 0 -> progname :: string
 stdin 1 -> x :: string
 stdin 2 -> y :: string

output:
 stdout -> x + y :: string

programming language:
 C99

considerations:
 security paranoid programming

Name: Anonymous 2011-06-09 21:02

>>9

#include<stdio.h>
#include<gmp.h>
main(int c,char**v){mpz_t s,n;mpz_inits(s,n,NULL);while(argv){mpz_set_str(n,argv++,10);mpz_add(s,s,n);}mpz_out_str(stdout,10,s);mpz_clears(s,n,NULL);}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List