From 85cd88b7e3c038cb66e731853dce7888be6e1bf4 Mon Sep 17 00:00:00 2001 From: Lowercases Date: Fri, 9 Dec 2011 20:13:18 -0500 Subject: [PATCH] =?UTF-8?q?Imprimir=20la=20versi=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- xteban.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xteban.c b/xteban.c index 59ef899..4ec1a57 100644 --- a/xteban.c +++ b/xteban.c @@ -2,12 +2,29 @@ #include #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))