Skip to content

Instantly share code, notes, and snippets.

View kgabis's full-sized avatar

Krzysztof Gabis kgabis

View GitHub Profile
@kgabis
kgabis / strtoint.c
Created September 6, 2011 13:25
String to long unsigned int
long unsigned int strToInt(char * str)
{
long unsigned int result = 0;
while(*str)
{
result *= 10;
result += *str - '0';
str++;
}
return result;
@kgabis
kgabis / about.md
Created August 9, 2011 19:01 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@kgabis
kgabis / Program.cs
Created July 25, 2011 23:22
RemRaw raw file remover
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace remraw
{
class Program
{
@kgabis
kgabis / itob.c
Created July 19, 2011 20:15
n int to b base string in C
void itob(int n, char s[], int b)
{
int i = 0, temp;
n = n > 0 ? n : -n;
do {
temp = n % b;
if(temp < 10)
s[i++] = '0' + temp;