Skip to content
Browse files

Fixed bugs with prev. commit

  • Loading branch information...
1 parent 2bc95b2 commit 2a267eb3542a70893b5ee044d62bd62fdb8930db Sound and Fury committed Jul 27, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −0 bits.h
  2. +0 −1 quirc.c
View
3 bits.h
@@ -8,6 +8,9 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+
+int width, height; // term size (set in quirc.c)
char * fgetl(FILE *); // gets a line of string data; returns a malloc-like pointer (preserves trailing \n)
int wordline(char *, int x); // prints a string, breaking lines in between words
View
1 quirc.c
@@ -58,7 +58,6 @@ name;
int main(int argc, char *argv[])
{
- int width=0, height=0;
char *cols=getenv("COLUMNS"), *rows=getenv("ROWS");
if(cols) sscanf(cols, "%u", &width);
if(rows) sscanf(rows, "%u", &height);

0 comments on commit 2a267eb

Please sign in to comment.
Something went wrong with that request. Please try again.