Sha256: 1cbdd6a8b5e8749eda4bfab31944ce545e1b22cd17891cf863022e95de967931
Contents?: true
Size: 280 Bytes
Versions: 3
Compression:
Stored size: 280 Bytes
Contents
#include "portparse.h" int portparse(unsigned char *y,const char *x) { long long d = 0; long long j; for (j = 0;j < 5 && x[j] >= '0' && x[j] <= '9';++j) d = d * 10 + (x[j] - '0'); if (j == 0) return 0; if (x[j]) return 0; y[0] = d >> 8; y[1] = d; return 1; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_nacl-0.1.2 | ext/ruby_nacl/NaCl/curvecp/portparse.c |
ruby_nacl-0.1.1 | ext/ruby_nacl/NaCl/curvecp/portparse.c |
ruby_nacl-0.1.0 | ext/ruby_nacl/NaCl/curvecp/portparse.c |