diff --git a/src/core/lib/utils/misc.c b/src/core/lib/utils/misc.c index 03e0762..1f0d637 100644 --- a/src/core/lib/utils/misc.c +++ b/src/core/lib/utils/misc.c @@ -465,4 +465,9 @@ char *why2_replace(char *string, char *old, char *new) //CODE FROM: https://www. result[i] = '\0'; return result; +} + +unsigned short why2_byte_format_length(char *s) +{ + return (s[1] << 7) | s[0]; //ADD THE FIRST TWO INDEXES TOGETHER TO GET LENGTH } \ No newline at end of file