Share a single str_starts() implementation
No need to define this as a static function in multiple files. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
23c130e9b7
commit
e55df99ee6
6 changed files with 8 additions and 24 deletions
|
@ -1194,3 +1194,9 @@ int ssid_parse(const char *buf, struct wpa_ssid_value *ssid)
|
|||
|
||||
return ssid->ssid_len ? 0 : -1;
|
||||
}
|
||||
|
||||
|
||||
int str_starts(const char *str, const char *start)
|
||||
{
|
||||
return os_strncmp(str, start, os_strlen(start)) == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue