Imported Upstream version 1.0.0
[platform/upstream/nghttp2.git] / doc / nghttp2_nv_compare_name.rst
1
2 nghttp2_nv_compare_name
3 =======================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: int nghttp2_nv_compare_name(const nghttp2_nv *lhs, const nghttp2_nv *rhs)
11
12     
13     Compares ``lhs->name`` of length ``lhs->namelen`` bytes and
14     ``rhs->name`` of length ``rhs->namelen`` bytes.  Returns negative
15     integer if ``lhs->name`` is found to be less than ``rhs->name``; or
16     returns positive integer if ``lhs->name`` is found to be greater
17     than ``rhs->name``; or returns 0 otherwise.