proxygen
String.h File Reference
#include <stdlib.h>
#include <string.h>
#include <folly/portability/Config.h>
#include <strings.h>

Go to the source code of this file.

Functions

void * memrchr (const void *s, int c, size_t n)
 

Function Documentation

void* memrchr ( const void *  s,
int  c,
size_t  n 
)

Definition at line 20 of file String.cpp.

References a, b, c, and s.

Referenced by folly::rfind().

20  {
21  for (auto p = ((const char*)s) + n - 1; p >= (const char*)s; p--) {
22  if (*p == (char)c) {
23  return (void*)p;
24  }
25  }
26  return nullptr;
27 }
static set< string > s
char c