Skip to content

Instantly share code, notes, and snippets.

View rbehm-ibb's full-sized avatar

Reinhardt Behm rbehm-ibb

  • Taiwan
  • 15:13 (UTC +08:00)
View GitHub Profile
@rbehm-ibb
rbehm-ibb / strtok.c
Created May 23, 2022 06:36 — forked from sushlala/strtok.c
An implementation of strtok
#include <stddef.h>
#include <stdbool.h>
#include <stdio.h>
bool is_delim(char c, char *delim)
{
while(*delim != '\0')
{
if(c == *delim)
return true;