From 21b38c2d710a09d28bb0b3e7b66655a979ef700a Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Thu, 27 Oct 2011 18:27:41 +0200 Subject: [PATCH] Some changes --- C_Language/morceau_miroir.c | 49 ------------------- .../exercice_rw}/Makefile | 0 .../exercice_rw}/consommateur.c | 0 .../exercice_rw}/consommateur.h | 0 .../exercice_rw}/constantes.h | 0 .../exercice_rw}/global.c | 0 .../exercice_rw}/producteur.c | 0 .../exercice_rw}/producteur.h | 0 .../exercice_rw}/rapport | 0 .../exercice_rw}/sema.c | 0 .../exercice_rw}/sema.h | 0 .../exercice_rw}/types.h | 0 .../ipc_shm_posix.c} | 0 13 files changed, 49 deletions(-) delete mode 100644 C_Language/morceau_miroir.c rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/Makefile (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/consommateur.c (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/consommateur.h (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/constantes.h (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/global.c (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/producteur.c (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/producteur.h (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/rapport (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/sema.c (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/sema.h (100%) rename C_Language/{ncurses_semaphores => semaphores_manuel_exemples/exercice_rw}/types.h (100%) rename C_Language/{IPC_shm_posix.c => semaphores_manuel_exemples/ipc_shm_posix.c} (100%) diff --git a/C_Language/morceau_miroir.c b/C_Language/morceau_miroir.c deleted file mode 100644 index b5da557..0000000 --- a/C_Language/morceau_miroir.c +++ /dev/null @@ -1,49 +0,0 @@ -#include - -int lirech1( char* s, int n ) -{ - int i, c; - - i = 0; - - while ( i < n && ( c = getchar() ) != '\n' ) - s[i++] = c; - - s[i] = '\0'; - - if ( c != '\n' ) - while ( getchar() != '\n' ); - - return i; -} - -void miroir( char *s, char *t) -{ - -/* A VOUS ! -regardez la version miroir2 MAIS ... -obligation d'employer les notations POINTEURS (t++,s++ ou s--, *t, *s) - - -*/ -} - -/* miroir, avec notation "classique" t[i] -void miroir2( char *s, char *t) -{ - int l,i; - l= strlen(t); - for (i=0; i