1
2
3
4
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
...

C Simple SHA Hashing

by mdw7.blogspot.com, December 11, 2009 15:38, 1 refactoring, tagged with hash, c, SHA1, 5 bit

Dear All, I'm a new C progr...

Avatar Talk
1
2
3
4
void freeArray(int **a, int m) {
    int i;
    for (i = 0; i < m; ++i) {
...

C Freeing memory of a Multidi...

by agnt666.myopenid.com, November 28, 2009 17:18, 2 refactorings, tagged with c, malloc, free, array

Is this the correct way to ...

C398dd0c2ca7d5281d0a83242a924e76 Talk
1
2
3
4
// 
// cssmin.c
// 
...

C Css minification

by Tj Holowaychuk, November 25, 2009 22:05, 5 refactorings, tagged with css, minification

Repo is here http://github....

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
/*
 * 0x378 - 0x37F are data pins
 * 0x383 - 0x387 are status pins
...

C LPT garland

by taro, November 18, 2009 14:53, 6 refactorings, tagged with freebsd, lpt, garland

This is my first C program....

E9d3f1a9ded6d6b118dd84467f2278df Talk
1
2
3
4
public void foo(string bar)
{

...

C test

by Cb, November 11, 2009 19:07, 3 refactorings

test

4224dd00640071e10be53b1933566132 Talk
1
2
3
4
/* a[1..k] - previous values
** c[1..k+1] - coefficients
**
...

C linear recurrence computation

by getopenid.com/eliben, November 02, 2009 04:41, 3 refactorings, tagged with c array

For Jon Bentley's "Programm...

Fc761ccaf6c0d7d977e2959f9bfebd06 Talk
1
2
3
4
#include <stdio.h>
#include <stdlib.h>
...

C Enumerator

by Tj Holowaychuk, October 29, 2009 16:53, 3 refactorings

yup

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
// 
// array.h - CKit
...

C C Array Implementation

by Tj Holowaychuk, October 19, 2009 00:24, 5 refactorings, tagged with c array

im no c pro. may be some me...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
int
Version_compare(Version *a, Version *b) {
  return a->major > b->major ? 1 :
...

C Version comparison

by Tj Holowaychuk, October 14, 2009 22:01, 5 refactorings

More to the implementation ...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
#include <stdio.h>
#include <stdlib.h>
...

C program i wrote to learn

by powdermilkman.myopenid.com, September 19, 2009 08:11, No refactoring, tagged with c, pthread

it works but i think i coul...

Avatar Talk
1
2
3
4
char *
Method_to_s(Method *self) {
  static char buf[1024];
...

C string buffer

by Tj Holowaychuk, September 17, 2009 20:55, 6 refactorings, tagged with string buffer

What is the least inexpensi...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
#include <stdio.h>
#include <ctype.h>
#include <string.h>
...

C FLAMES!!!!!!!!!!!!!!!!!

by vhar.myopenid.com, August 11, 2009 14:00, 7 refactorings, tagged with fun

a little game which give yo...

Avatar Talk
1
2
3
4
int
File_size(char *path) {
  FILE *fp;
...

C File bytesize

by Tj Holowaychuk, August 05, 2009 18:24, 3 refactorings

faster / better / sexier?

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
// The struct:

typedef struct { 
...

C C Array Slice

by Tj Holowaychuk, August 03, 2009 21:28, 4 refactorings

Slice implementation

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
void foo(char** array)
{
	*array = (char *)calloc(2, sizeof(char*));
...

C Initialize char array in fu...

by rem7.myopenid.com, July 08, 2009 22:33, 2 refactorings, tagged with c

How do you initialize an ar...

8339a3712739c903f06b8b9066500a63 Talk
1
2
3
4
char *
str_replace(char *str, char *old, char *new) {
  int i, count = 0;
...

C str_replace

by Tj Holowaychuk, June 23, 2009 21:23, 1 refactoring, tagged with c string replace

Pretty weak first pass at a...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
    char str[] = "foo bar";
    char delims[] = " ";
    char *word = strtok(str, delims);
...

C strtok WTF

by Tj Holowaychuk, June 11, 2009 21:02, 2 refactorings, tagged with strtok

I thought str[] and *str we...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
...

C Variable arg strcat

by Tj Holowaychuk, May 20, 2009 16:23, 5 refactorings

whoop

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
#define YA_SELECT(N) int yaElement_selector_##F (yaElement *self)
#define YA_SELECT2(N, ARGS...) int yaElement_selector_##F (yaElement *self, ARGS)

C Macro variable arg substitu...

by Tj Holowaychuk, May 13, 2009 17:00, No refactoring

I would prefer YA_SELECT al...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
str + strlen(str)

C Get last char

by Tj Holowaychuk, May 12, 2009 20:00, 4 refactorings

super simple but seems like...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
void fJPG(struct graphf *s, char *path)
{
    FILE *f;
...

C JPEG resolution

by deathknight.myopenid.com, May 10, 2009 14:45, 1 refactoring

trying to get resolution fr...

93ea028d15510e202e44de03e46ec409 Talk
1
2
String = '\'' < (!'\'' .)* > '\''
       | '"' < (!'"' .)* > '"' 

C Leg string

by Tj Holowaychuk, May 07, 2009 00:33, 1 refactoring

Does peg have some fancy op...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
int 
main(int argc, char **argv) {
  while (*++argv) printf("%s\n", *argv); 
...

C argv iteration

by Tj Holowaychuk, April 30, 2009 19:07, 4 refactorings

This is the cleanest way I ...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
/*
LANGUAGE_CHANGE
This plugin change the default language in Linux.
...

C language_change plugin for ...

by gmh2000.myopenid.com, April 28, 2009 16:08, No refactoring, tagged with c, linux, pidgin, plugin, language, change

This plugin works in my Kub...

Avatar Talk
1
2
3
4
#include <stdio.h> 

#include <unistd.h>
...

C A client for net!

by gaoweige.blogspot.com, April 22, 2009 08:56, No refactoring, tagged with linux c

When I must use a client wh...

72f8ba24304c4648c18e11f0aa2287f2 Talk