blob: c722fd57d0e22cf5d07a9d6b1b88b114ba2cae03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* ISC license. */
#include <bcnm/wpactrl.h>
unsigned int wpactrl_env_parse (char *s, size_t len)
{
size_t i = 0 ;
unsigned int n = 0 ;
for (; i < len ; i++) if (s[i] == '\n') (s[i] = 0, n++) ;
return n ;
}
|