1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

a bunch of misc. changes

This commit is contained in:
fyodor
2005-12-29 11:34:45 +00:00
parent 4a3a773963
commit e2b19b36a3
24 changed files with 2477 additions and 1821 deletions

View File

@@ -211,6 +211,14 @@ unsigned int gcd_n_uint(int nvals, unsigned int *val);
int arg_parse(const char *command, char ***argv);
void arg_parse_free(char **argv);
/* Converts an Nmap time specification string into milliseconds. If
the string is a plain non-negative number, it is considered to
already be in milliseconds and is returned. If it is a number
followed by 's' (for seconds), 'm' (minutes), or 'h' (hours), the
number is converted to milliseconds and returned. If Nmap cannot
parse the string, it is returned instead. */
long tval2msecs(char *tspec);
/* Convert a string in the format of a roughly C-style string literal
(e.g. can have \r, \n, \xHH escapes, etc.) into a binary string.
This is done in-place, and the new (shorter or the same) length is