You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bits: general helper functions (chiefly string manipulation)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "colour.h"
// helper fn macros
#define max(a,b) ((a)>(b)?(a):(b))
#define min(a,b) ((a)<(b)?(a):(b))
#ifdef NEED_STRNDUP
char *strndup(const char *s, size_t size);
#endif
int wordline(const char *msg, unsigned int x, char **out, size_t *l, size_t *i, colour lc); // prepares a string for printing, breaking lines in between words; returns new x