-
Notifications
You must be signed in to change notification settings - Fork 0
/
arrstr.h
41 lines (36 loc) · 1.92 KB
/
arrstr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
********************************************************************
* USB stack and host controller driver for SGI IRIX 6.5 *
* *
* Programmed by BSDero *
* bsdero at gmail dot com *
* 2011/2012 *
* *
* *
* File: arrstr.h *
* Description: String array basic functions header *
********************************************************************
*******************************************************************************************************
* FIXLIST (latest at top) *
*-----------------------------------------------------------------------------------------------------*
* Author MM-DD-YYYY Description *
*-----------------------------------------------------------------------------------------------------*
* BSDero 09-13-2012 -Initial version *
* *
*******************************************************************************************************
*/
#ifndef _ARRSTR_H_
#define _ARRSTR_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_STRINGS 8
typedef struct{
int max;
char *str[MAX_STRINGS];
}arrstr_t;
void arrstr_init( arrstr_t *arr, int max);
void arrstr_destroy( arrstr_t *arr);
void arrstr_add( arrstr_t *arr, char *str);
void arrstr_dump( arrstr_t *arr);
#endif