#include <stdio.h> int main () ...
C Test
by https://www.google.com/accounts/o8/id?id=AItOawkZuzVMryYKOU8sDRj12k_5P2R4U4Yf5Rw,
January 10, 2012 00:58,
1 refactoring
double currentTime()
{
struct timeval time;
...
C Current time in seconds fro...
I have this function which ...
- (void)moveSprite:(CCSprite *)sprite from:(CGPoint)src to:(CGPoint)dst atSpeed:(float)speed
{
AStarNode *node = [self findPathFrom:src to:dst];
...
C moveSprite stepSprite
by https://www.google.com/accounts/o8/id?id=AItOawmuTPHBNBgS93l6stBzzsrihN8sV0QDYg0,
August 08, 2011 22:14,
1 refactoring
i just added stepSprite bas...
/** * Parallel port morse code transmitter * Version: 1.00 ...
C LPT Morse code transmitter
by ellisgl.myopenid.com,
August 08, 2011 22:01,
4 refactorings, tagged with Linux, HAM, AM, Radio, Morse Code
Uses the LPT (Parallel Port...
// Copyright (C) 2010 Simon Holywell ...
C Code review for a MySQL UDF...
I have written a small MySQ...
#include<stdio.h> #include<stdlib.h> #include<string.h> ...
C Parsing a CSV string
by https://www.google.com/accounts/o8/id?id=AItOawlL5BjCAH6V7hkWWq6PVD0RZUUYtaPS7n8,
February 16, 2011 11:51,
3 refactorings, tagged with C strings linux c
This is a C code, to essent...
/* Define the maximum password length */ #define MIN_PASSWORD_LENGTH 8 ...
C Password gen in C with MD5 ...
I wanted to try my hand at ...
#include <stdio.h> #include <stdarg.h> #include <stdlib.h> ...
C md5-file.c
by https://www.google.com/accounts/o8/id?id=AItOawkaJfxdlVdOFdPHlhS4nKHGKNOFcokUd7I,
December 26, 2010 01:27,
2 refactorings, tagged with c, md5, prettier
I've been messing around wi...
char *escape(char *str, size_t len)
{
char *newstr;
...
C Escaping special chars
by Douglas,
October 08, 2010 17:01,
6 refactorings
I made a escaping function ...
#include <unistd.h> #include <sys/types.h> #include <pwd.h> ...
C chroot without root
I want to run a process in ...
void splitpath(const char *path, char *directory, char *filename, char *extension)
{
...
C Extracting directory, filen...
I am new to C. Following co...
#include <windows.h> #include <tchar.h> #include <stdio.h> ...
C Traverse Directory
by emeka.micro.myopenid.com,
April 12, 2010 12:54,
2 refactorings
I would like to improve my ...
int contains(const char* word, const char* pattern) {
int pCount = 0, pLength = strlen(pattern);
char i;
...
C String Searching Algorithm
I wrote the following funct...
/* * ===================================================================================== * ...
C Using semaphores in C and f...
by jarodluebbert.myopenid.com,
March 24, 2010 07:28,
No refactoring, tagged with c, concurrency, ipc, semaphores
Just posting this to check ...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> ...
C Simple SHA Hashing
Dear All, I'm a new C progr...
void freeArray(int **a, int m) {
int i;
for (i = 0; i < m; ++i) {
...
C Freeing memory of a Multidi...
Is this the correct way to ...
/* * 0x378 - 0x37F are data pins * 0x383 - 0x387 are status pins ...
C LPT garland
This is my first C program....
/* a[1..k] - previous values ** c[1..k+1] - coefficients ** ...
C linear recurrence computation
For Jon Bentley's "Programm...
It is just for Test.