snort-devel February 2014 archive
Main Archive Page > Month Archives  > snort-devel archives
snort-devel: [Snort-devel] [PATCH]: src/util.h: Add SnortStrtoul

[Snort-devel] [PATCH]: src/util.h: Add SnortStrtoull/SnortStrToU64 functions

From: Joshua Kinard <kumba_at_nospam>
Date: Tue Feb 18 2014 - 14:39:36 GMT
To: snort-devel mailinglist <>

Hi snort-devel,

I've added a SnortStrtoull() and SnortStrToU64() set of functions to parse
64-bit unsigned integers from strings to util.h in a side project I'm
working on. I thought it might be useful to others, so attached is a patch
for review.

It's basically a quick copy of the 32-bit versions, just with the data types
changed out, as appropriate.

 util.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)


-- Joshua Kinard Gentoo/MIPS 4096R/D25D95E3 2011-03-28 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic

Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.

Snort-devel mailing list

Please visit for the latest news about Snort!