Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 658 Bytes
quIRC - simple terminal-based IRC client
Copyright (C) 2010 Edward Cree
See quirc.c for license information
bits: general helper functions
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ttyesc.h"
#include "colour.h"
// helper fn macros
#define max(a,b) ((a)>(b)?(a):(b))
#define min(a,b) ((a)<(b)?(a):(b))
// global settings & state (set in quirc.c)
int width, height; // term size
int mirc_colour_compat;
char * fgetl(FILE *); // gets a line of string data; returns a malloc-like pointer (preserves trailing \n)
int wordline(char *, int x, char **); // prepares a string for printing, breaking lines in between words
Jump to Line
Something went wrong with that request. Please try again.