Sigrid Solveig Haflínudóttirwip Plan 9 port8024a895 years agoHistory
33 lines · 858 B · C
RawDownload
#ifndef _util_h_#define _util_h_ /*Copyright (c) 2013-2021 Devine Lu Linvega2018 web port by rezmason2021 C89 port by rezmason Permission to use, copy, modify, and distribute this software for anypurpose with or without fee is hereby granted, provided that the abovecopyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIESWITH REGARD TO THIS SOFTWARE.*/ /*	These are common utility functions in C programs	that make heavy use of strings, but are not	included in C89.*/ typedef struct {	void (*f)(void);} FuncWrapper; FuncWrapper *wrapFunction(void (*f)(void));char *concat(const char *s1, const char *s2);char *duplicate(const char *s);int isMatch(char *c, const char *candidates);char *getNextToken(char *str, const char *delim, char **save); #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t