X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_strerror.pod;h=64ef595785120f76b79d20e5738c3b1c86fc8ded;hb=75d0420d9b56c2d7626e8a91f752ad195c39d085;hp=332ea2d16c3a8f671778fc9fb88946dd653bfdec;hpb=24342b1919b6aaa26c33aae50974b449f95a737a;p=awesomized%2Flibmemcached diff --git a/docs/memcached_strerror.pod b/docs/memcached_strerror.pod index 332ea2d1..64ef5957 100644 --- a/docs/memcached_strerror.pod +++ b/docs/memcached_strerror.pod @@ -1,6 +1,6 @@ =head1 NAME -memcached_strerror +memcached_strerror - Get error string =head1 LIBRARY @@ -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