lambda-calc-1/misc/wcindex.c
2025-01-13 20:36:07 -06:00

18 lines
231 B
C

#include <debug.h>
#include "wcindex.h"
const wchar_t* wcindex(
const wchar_t* str,
wchar_t wc)
{
while (*str)
if (*str == wc)
return str;
else
str++;
return NULL;
}