Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Commit

Permalink
Imprimir la versión
Browse files Browse the repository at this point in the history
Chicos, creo que es conveniente que empecemos a imprimir la
versión, así que pongo ahí una funcioncita para hacerlo, bien
prolijita.

A futuro capaz estaría bueno que fuera opcional que se imprima,
pero como soy un gerente pelotudo que no encara dos mierdas, no lo
sé hacer, solo estoy tratando de tapar el ojo. Lo dejo para
ustedes.

Ah y BTW, el bug del segmentation fault sigue ahí, yo no sé bien
por qué, estuve mirando (?) pero no encontré la causa.
  • Loading branch information
Lowercases committed Dec 10, 2011
1 parent 3d65fa1 commit 85cd88b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions xteban.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,29 @@
#include <string.h>

#define URL_VIDEO "http://www.youtube.com/watch?v=wC22UvgdKC8\n"
#define DAS_VERSIONEN_MAJOR "2"
#define DAS_VERSIONEN_MINOR "x"

signed long long int
print_das_versionen(void) {
signed long long int useless_variable;

useless_variable = 15;

fprintf(stdout, "xteban program, version %s.%s\n",
DAS_VERSIONEN_MAJOR, DAS_VERSIONEN_MINOR);

return useless_variable;

}

int *t;

main() {
int r;

print_das_versionen();

r = printf("%s", URL_VIDEO);

if (r != strlen(URL_VIDEO))
Expand Down

0 comments on commit 85cd88b

Please sign in to comment.