100.00000000 100.63040201 100.67820004 100.75418227 100.80404273 100.88497099 100.97406618 103.08327523 103.23681735 [104.31415152](https://blockchain.info/tx/4e15ce4722
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "str2long.h" | |
long str2long_robert_3(const char *str) | |
{ | |
long result = 0; | |
int i; | |
if (str[0] == '-') { | |
if (str[1] == '\0') | |
error = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Code for programming contest at: | |
* http://blog.regehr.org/archives/909 | |
*/ | |
#include <limits.h> | |
extern int error; | |
long str2long(const char *str) | |
{ | |
long result = 0; |