X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_strerror.pod;h=8386c312c383f20c6f83697b6905b979a384e1f1;hb=a246ac50a88e4af750fd2dd209eff94dcadf72d2;hp=332ea2d16c3a8f671778fc9fb88946dd653bfdec;hpb=24342b1919b6aaa26c33aae50974b449f95a737a;p=m6w6%2Flibmemcached diff --git a/docs/memcached_strerror.pod b/docs/memcached_strerror.pod index 332ea2d1..8386c312 100644 --- a/docs/memcached_strerror.pod +++ b/docs/memcached_strerror.pod @@ -1,7 +1,7 @@ =head1 NAME -memcached_strerror - +memcached_strerror - Get error string + =head1 LIBRARY C Client Library for memcached (libmemcached, -lmemcached) @@ -10,24 +10,25 @@ C Client Library for memcached (libmemcached, -lmemcached) #include - char *memcached_strerror (memcached_st *ptr, - memcached_return rc); + const char * + memcached_strerror (memcached_st *ptr, + memcached_return_t rc); =head1 DESCRIPTION -memcached_strerror() takes a C value and returns a string +memcached_strerror() takes a C value and returns a string describing the error. This string must not be modified by the application. -C values are returned from nearly all libmemcached(3) functions. +C values are returned from nearly all libmemcached(3) functions. -C values are of an enum type so that you can set up responses +C values are of an enum type so that you can set up responses with switch/case and know that you are capturing all possible return values. =head1 RETURN -memcached_strerror() returns a string describing a C value. +memcached_strerror() returns a string describing a C value. =head1 HOME