File: misc.h

package info (click to toggle)
liquidwar 5.6.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,064 kB
  • ctags: 2,524
  • sloc: ansic: 24,996; xml: 3,897; sh: 3,054; asm: 1,344; makefile: 1,312; php: 486; python: 464; sql: 22
file content (25 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (7)
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
/*
* Just misc. functions...
*
* Copyright (C) 2003, David Redick
* Released under the GNU General Public License (v2)
*/

#ifndef LWMAPGEN_MISC_H
#define LWMAPGEN_MISC_H


/* a random number from min to max inclusive on both ends */
int rand_num( int min, int max);


/* size == the size of the elements in the array/grid */

void * create_array( int length, int size );
void delete_array( void *array );

void ** create_grid( int r, int c, int size );
void delete_grid( void **grid, int r );


#endif