Add congestion

This commit is contained in:
angt
2015-10-22 11:12:14 +02:00
parent 4d98a16579
commit f8484777b3
2 changed files with 32 additions and 4 deletions

View File

@@ -70,6 +70,19 @@ static inline int str_cmp (const char *restrict sa, const char *restrict sb)
return 1;
}
static inline size_t str_len (const char *restrict str)
{
if (!str)
return 0;
size_t i = 0;
while (str[i])
i++;
return i;
}
typedef struct buffer buffer_t;
struct buffer {