root/randseq.h
| Revision 106, 1.4 kB (checked in by ng, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | /*************************************************************************** |
| 2 | * This file is part of the 'gemmes' project * |
| 3 | * * |
| 4 | * * |
| 5 | * Copyright (C) 2007 by * |
| 6 | * GARCH Soufiane * |
| 7 | * GUILLAUME Nicolas <ng@ngsoft-fr.com> * |
| 8 | * * |
| 9 | * * |
| 10 | * This program is free software; you can redistribute it and/or modify * |
| 11 | * it under the terms of the GNU General Public License as published by * |
| 12 | * the Free Software Foundation; version 2 of the License only. * |
| 13 | * See the COPYING file. * |
| 14 | ***************************************************************************/ |
| 15 | |
| 16 | |
| 17 | #ifndef RANDSEQ_H |
| 18 | #define RANDSEQ_H |
| 19 | |
| 20 | |
| 21 | typedef struct s_randseq |
| 22 | { |
| 23 | short len; |
| 24 | short pos; |
| 25 | char * data; |
| 26 | |
| 27 | short ncolor; |
| 28 | }* randseq_t; |
| 29 | |
| 30 | /* len: seq length |
| 31 | * diff: number of different item in the sequence |
| 32 | */ |
| 33 | randseq_t randseq_new(int len, int diff); |
| 34 | randseq_t randseq_new_from_str(char * seq); |
| 35 | void randseq_free(randseq_t rs); |
| 36 | char randseq_next(randseq_t rs); |
| 37 | |
| 38 | |
| 39 | #endif |
Note: See TracBrowser for help on using the browser.
