Skip to content

Instantly share code, notes, and snippets.

View rbehm-ibb's full-sized avatar

Reinhardt Behm rbehm-ibb

  • Taiwan
  • 17:39 (UTC +08:00)
View GitHub Profile
@sushlala
sushlala / strtok.c
Created December 21, 2017 05:21
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;