#include <stdio.h>
#include <stdlib.h>

...

C Read specific range of line...

by rem7.myopenid.com, March 12, 2009 05:12, 3 refactorings, tagged with c, file input

Hi I'm trying to make a pro...

8339a3712739c903f06b8b9066500a63 Talk
void print_help()
{
        printf("usage:\n") ;
...

C Using getopt() to parse inp...

by rickross.myopenid.com, January 24, 2009 21:13, No refactoring, tagged with input, parse, arguments, getopt

This is a simple bit of cod...

55502f40dc8b7c769880b10874abc9d0 Talk
int max = rand(); // or any init value
int min = rand(); // or any init value
int tmp = rand(); // or any init value
...

C How to find max, min of thr...

by Tien Dung, November 18, 2008 12:33, 19 refactorings

I tried to use as less vari...

5071c5b861341c0dcfcf6ac86327701f Talk
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
...

C Writing characters to stdou...

by Chris Jester-Young, October 28, 2008 11:32, 1 refactoring, tagged with rate limiting, timing
729442eea8d8548842a6e0947e333c7b Talk
-(IBAction)countCharacters:(id)sender {
    NSString *inputString = [[NSString alloc] initWithFormat:[input stringValue]];

...

C Counting characters

by halbtuerke, October 21, 2008 17:16, 1 refactoring, tagged with count, character, objectivec, cocoa

This is actually Objective-...

Be965afd8e05334af7ed2adc64736310 Talk
char **split (char *string, char sep, char escape) {

    char **ret = NULL;
...

C A Java-like function split

by Fran, September 16, 2008 08:32, 3 refactorings, tagged with c, split, strings

This function splits a stri...

3c50320adac71693cef577a5dbd3d4d4 Talk
#include <math.h>
#include <stdio.h>
...

C Fastest way to get value of pi

by Chris Jester-Young, July 30, 2008 03:50, 5 refactorings, tagged with speed, pi, language agnostic

Solutions welcome in any la...

729442eea8d8548842a6e0947e333c7b Talk
#include <stdio.h>
#include <math.h>
int main ()
...

C Quanti bit per rappresentar...

by Tanino Rulez, February 20, 2008 00:16, 2 refactorings, tagged with int, integer, bit

Dato un intero,determinare ...

D8e099f752011ec60e809a733ef32a7e Talk
#include <stdio.h>
int main ()
{
...

C Int or Double/Float ?

by Tanino Rulez, February 20, 2008 00:11, 1 refactoring, tagged with c, int, double, float

Dato un numero,restituisce ...

D8e099f752011ec60e809a733ef32a7e Talk
#ifndef _LINKED_LIST_H_
#define _LINKED_LIST_H_
#include "common.h"
...

C Linked lists implementation

by mr_H, January 12, 2008 02:07, 1 refactoring, tagged with list linked llist double linked c ansi

Hello, im not sure whether ...

0628c38e469659bbefa57bae9bc7a4c2 Talk
int socket_read_line_alloc(int sock, char** out) {
        /* current buffer size */
        unsigned int size = 128;
...

C Socket read line in C

by bugmenot2.myopenid.com, December 06, 2007 22:13, 6 refactorings, tagged with c, sockets

I don't like the char** out...

55502f40dc8b7c769880b10874abc9d0 Talk
/*
 *      Stack.c
 *
...

C Stack Implementation

by TiKoZ, November 01, 2007 08:58, 4 refactorings, tagged with Stack, Data, Structures

My first attempt to data st...

2e8c46a2a3227237d3305ebf7d68212d Talk
#define kSpace 032

char buf[] = {0x42, 0x73, 0x75, 0x27, 0x13, 0x1C, 0x68, 0x1B, 0x64};
...

C Character buffer manipulati...

by Mike, October 14, 2007 02:17, 10 refactorings

Hi All,

I was given this...

A587929f80f37c163f855f5610f2aa0c Talk
/* Linked list that emulates a hash map */
# include <stdlib.h>
# include <stdio.h>
...

C Misbehaving global pointer

by getopenid.com/ptn, October 13, 2007 17:55, 2 refactorings

I was in the middle of this...

55502f40dc8b7c769880b10874abc9d0 Talk
vector<Service*> services;
....
....
...

C pointor of vector problem

by guzi5618.myopenid.com, October 09, 2007 12:46, 1 refactoring

Here is my code. I would li...

7028aa63f9eb59a6dea6f04f034a732c Talk
/* Transforms a number to a string
 * e.g 1234 => "1234"
 *
...

C simplest of mallocs examples

by getopenid.com/ptn, October 02, 2007 20:24, 5 refactorings

Practising for my test tomo...

55502f40dc8b7c769880b10874abc9d0 Talk
_=0;c(q){q<0?putchar("`',)( \n-\\_/"[q+11]):c(("#"
"CB#_,ab:@BbBXb\\bG]N_2JNH4`X:.MRLA,aA(J`)BFRTBRL"
"'####_SJ[0RJbb\\R]N=5,64XMMR976Hb\\QLARZ[O-TZ[RT"
...

C C simple loop

by Andy Sloane, September 27, 2007 17:52, 16 refactorings

How to make this shorter ?

Ee9108fb0f4a69c57042c47afa0d18ac Talk