diff options
author | Pixel <Pixel> | 2001-05-02 23:37:01 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-05-02 23:37:01 +0000 |
commit | 25c35ed8862258cff8b96a1849814d7526d6c8d9 (patch) | |
tree | 79948e8a72efdc0ebe64556c78358a7038e5b3d8 /src | |
parent | 2f24e11cb53c348b48eb977912371797d8ece06b (diff) |
Pouet
Diffstat (limited to 'src')
-rw-r--r-- | src/Polynom.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Polynom.c b/src/Polynom.c index 805c0fa..f1e5fb2 100644 --- a/src/Polynom.c +++ b/src/Polynom.c @@ -35,11 +35,15 @@ void ctrlbreakhand(int i) /* Les routines générales */ -void init_all(void) { +void init_all(char * m) { Initialise(&variables); /* nom de la variable utilisee pour la saisie des polynomes, a recuperer en argv eventuellt ATTENTION: elle est case sensitive */ - mute = "x"; + if (m) { + mute = m; + } else { + mute = "x"; + } display=DEC; } @@ -52,14 +56,14 @@ void invite(void) { /* Et notre main. On ne fait que lancer la boucle principale de l'interface */ -int main(void) +int main(int argc, char ** argv) { setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - invite(); + invite(argv[1]); signal(SIGSEGV, segfaulthand); signal(SIGINT, ctrlbreakhand); |