mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
19 lines
318 B
C
19 lines
318 B
C
|
/*
|
||
|
* strchr-like wrapper around host_strchr_internal.
|
||
|
*/
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
#include "defs.h"
|
||
|
#include "misc.h"
|
||
|
#include "utils/utils.h"
|
||
|
|
||
|
char *host_strrchr(const char *s, int c)
|
||
|
{
|
||
|
char set[2];
|
||
|
set[0] = c;
|
||
|
set[1] = '\0';
|
||
|
return (char *) host_strchr_internal(s, set, false);
|
||
|
}
|