src/string_func.h
changeset 11178 aa617a8b4f34
parent 10751 ebd94f2d6385
equal deleted inserted replaced
11177:6d9a43c48924 11178:aa617a8b4f34
    52 	return t - str;
    52 	return t - str;
    53 }
    53 }
    54 
    54 
    55 /** Convert the md5sum number to a 'hexadecimal' string, return next pos in buffer */
    55 /** Convert the md5sum number to a 'hexadecimal' string, return next pos in buffer */
    56 char *md5sumToString(char *buf, const char *last, const uint8 md5sum[16]);
    56 char *md5sumToString(char *buf, const char *last, const uint8 md5sum[16]);
       
    57 /** Convert the hexademical string to a binary md5sum, return 0 on success, nonzero on error */
       
    58 int StringToMd5sum(uint8 md5sum[16], const char *buf);
    57 
    59 
    58 /**
    60 /**
    59  * Only allow certain keys. You can define the filter to be used. This makes
    61  * Only allow certain keys. You can define the filter to be used. This makes
    60  *  sure no invalid keys can get into an editbox, like BELL.
    62  *  sure no invalid keys can get into an editbox, like BELL.
    61  * @param key character to be checked
    63  * @param key character to be checked