Skip to content

Instantly share code, notes, and snippets.

@vsajip
vsajip / kbhit.c
Created February 19, 2012 17:07
Keyboard hit testing
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
int kbhit(void)
{
struct termios oldt, newt;
int ch;
int oldf;
@maluta
maluta / strfry_example.c
Created June 27, 2011 21:57
strfry example
/* gcc -Wall -o strfry_example strfry_example.c */
#define _GNU_SOURCE
#include <string.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void)
{