X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=tools%2Fbrssl.h;h=a3ceb14f27b2ea336334996767cfb41240cb7a1f;hp=99ce38dc2a525e471db1f58ffd49524b6139b22c;hb=e8ccee8bcdae80cdf74c6d7327f1c7572589fae3;hpb=3210f38e0491b39aec1ef419cb4114e9483089fb diff --git a/tools/brssl.h b/tools/brssl.h index 99ce38d..a3ceb14 100644 --- a/tools/brssl.h +++ b/tools/brssl.h @@ -163,6 +163,12 @@ typedef VECTOR(unsigned char) bvector; */ int eqstr(const char *s1, const char *s2); +/* + * Convert a string to a positive integer (size_t). Returned value is + * (size_t)-1 on error. On error, an explicit error message is printed. + */ +size_t parse_size(const char *s); + /* * Structure for a known protocol version. */