diff options
Diffstat (limited to 'nimisewi.h')
| -rw-r--r-- | nimisewi.h | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -16,23 +16,19 @@ #ifndef NIMI_SEWI_H #define NIMI_SEWI_H +#include <stdlib.h> + /* struct to hold stuff useful for random index generation */ struct nanpa_nimi { - int nanpa_nimi; /* number of words */ + int nanpa_nimi; /* number of words - 1 */ int pi_li_lon; /* whether to insert 'pi' or not */ int nanpa_pi; /* index to insert 'pi', if pi_li_lon is 1 */ + int *nanpa_sewi_nimi; /* random indices of words */ + size_t suli_pi_nimi_sewi; /* length of generated phrase */ }; -void open_e_nanpa_sewi(void); - -void pana_e_nanpa_nimi(struct nanpa_nimi *nn); - -void pana_e_nanpa_pi_nimi_sewi(int *nanpa_sewi_mute, - const int suli_nimi, - struct nanpa_nimi *nn); +char *nimi_sewi(void); -const char *pana_e_nimi(const char *nimi_mute[], - const int suli_pi_nimi_mute, - const int nanpa_nimi); +void weka_e_nimi_sewi(char *nimi_sewi); #endif /* NIMI_SEWI_H */ |
