Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (16 sloc) 0.587 kB
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored
1 /*
2 quIRC - simple terminal-based IRC client
3 Copyright (C) 2010 Edward Cree
4
5 See quirc.c for license information
6 bits: general helper functions
7 */
8
9 #include <stdio.h>
10 #include <stdlib.h>
2a267eb Fixed bugs with prev. commit
Sound and Fury authored
11 #include <string.h>
d912744 Fix previous commit (failed to compile due to missing #include)
Sound and Fury authored
12 #include "ttyesc.h"
2a267eb Fixed bugs with prev. commit
Sound and Fury authored
13
a9c16e9 Things generally are now buffer-aware
Sound and Fury authored
14 // helper fn macros
15 #define max(a,b) ((a)>(b)?(a):(b))
16 #define min(a,b) ((a)<(b)?(a):(b))
17
2a267eb Fixed bugs with prev. commit
Sound and Fury authored
18 int width, height; // term size (set in quirc.c)
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored
19
20 char * fgetl(FILE *); // gets a line of string data; returns a malloc-like pointer (preserves trailing \n)
df117f0 Some of the printing is now going through the multibuffer code
Sound and Fury authored
21 int wordline(char *, int x, char **); // prepares a string for printing, breaking lines in between words
Something went wrong with that request. Please try again.