[Mesa-dev] [PATCH mesa 07/13] util: use standard name for strcmp()

Emil Velikov emil.l.velikov at gmail.com
Wed Nov 21 14:26:17 UTC 2018


On 2018/11/20, Eric Engestrom wrote:

> --- a/src/util/u_string.h
> +++ b/src/util/u_string.h
> @@ -154,6 +154,7 @@ util_strncat(char *dst, const char *src, size_t n)
>     return dst;
>  }
>  
> +#define strcmp util_strcmp
>  static inline int
>  util_strcmp(const char *s1, const char *s2)
>  {
Drop the helper? API seems ISO conformant.

HTH
Emil

[1] https://docs.microsoft.com/en-gb/cpp/c-runtime-library/reference/strcmp-wcscmp-mbscmp?view=vs-2017



More information about the mesa-dev mailing list