Skip to content

Instantly share code, notes, and snippets.

View mariusmg2's full-sized avatar

Marius Marusanici mariusmg2

  • Timisoara, România
View GitHub Profile
@mariusmg2
mariusmg2 / experiment.c
Created January 24, 2014 17:55
Parse HTML from mp3skull.com, and get the URI.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include <curl/curl.h>
// emp3world.cc HTML output particularites.
#define STARTTITLE "<span id=\"song_title\">"
#define STOPTITLE "</span>"
#define STARTLINK "<img src=\"/img/play.png\" /> Play</a>\n\t\t\t<a href=\""
@mariusmg2
mariusmg2 / gist:8491687
Created January 18, 2014 15:01
C sending a pointer via referince.
#include <stdio.h>
#include <stdlib.h>
int numerePare(int*, int, int**, int (*)(int*, int), int*);
int Sum(int*, int);
int Prod(int*, int);
int main() {
//char *test = malloc(5); *test = 'C'; *(test + 1) = '\0';
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#define STRMAX 44
#define NUMEF "C:\telefoane.out"
typedef struct PH {
char denumire[STRMAX], procesor[STRMAX], culoare[STRMAX], dimensiune[STRMAX];
int pret, greutate, memorie;
This is a C application that allows you to search and download music.