My Project
Loading...
Searching...
No Matches
az_chrpos.c
Go to the documentation of this file.
1// kernel_lib_printf_functions
2/*
3 * Kernel Lib Printf Functions
4 *
5 * Maintainer: Park Jiwoo
6 *
7 * Copyright (C) 2024 Park-Jiwoo
8 *
9 */
10#include "kernel_pr_he.h"
11
12int az_chrpos(const char *s, int c)
13{
14 int i;
15
16 i = 0;
17 while (s[i])
18 {
19 if ((int)s[i] == c)
20 return (i);
21 i++;
22 }
23 return (-1);
24}
int az_chrpos(const char *s, int c)
Definition az_chrpos.c:12