home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / PRINTING / PSFIX.ZIP / VECTDEF.H < prev   
C/C++ Source or Header  |  1991-05-01  |  2KB  |  74 lines

  1. /*
  2.  *
  3.  *  header file for vectdef.c
  4.  *
  5.  */
  6.  
  7. /*
  8.  * This software may be freely distributed under the following conditions:
  9.  *         1. It is distributed in its current form, without alterations.
  10.  *         2. No monetary profit is made, under any circumstances.
  11.  *
  12.  *             Marc A. Murison
  13.  *             Smithsonian Astrophysical Observatory
  14.  *             60 Garden Street, MS 63
  15.  *             Cambridge, MA  02138
  16.  *
  17.  *             (617) 495-7079      murison@cfacx2.harvard.edu
  18.  */
  19.   
  20.  
  21. #ifndef  VECTDEF_H
  22. #define  VECTDEF_H
  23.  
  24.  
  25. #include  "mydefs.h"
  26.  
  27. #ifdef    VECTDEF_C
  28.  
  29. #ifndef STDIO_H
  30. #define STDIO_H
  31. #include  <stdio.h>
  32. #endif
  33.  
  34. #ifndef STDLIB_H
  35. #define STDLIB_H
  36. #include  <stdlib.h>
  37. #endif
  38.  
  39. #endif
  40.  
  41.  
  42.  
  43. /* function prototypes */
  44.  
  45. void    verrout( Boolean bell, char *errstring );
  46. float    *fvector( int n1, int n2 );
  47. double    *dvector( int n1, int n2 );
  48. char    *cvector( int n1, int n2 );
  49. uchar    *ucvector( int n1, int n2 );
  50. int        *ivector( int n1, int n2 );
  51. sint    *sivector( int n1, int n2 );
  52. ushort    *usivector( int n1, int n2 );
  53. long    *lvector( int n1, int n2 );
  54. uint    *uvector( int n1, int n2 );
  55. ulong    *ulvector( int n1, int n2 );
  56. Flag    *flagvector( int n1, int n2 );
  57. void    **pvector( int n1, int n2 );
  58. void    free_fvector( float *v, int n1 );
  59. void     free_dvector( double *v, int n1 );
  60. void    free_cvector( char *v, int n1 );
  61. void    free_ucvector( unsigned char *v, int n1 );
  62. void     free_ivector( int *v, int n1 );
  63. void     free_sivector( short int *v, int n1 );
  64. void     free_usivector( unsigned short int *v, int n1 );
  65. void     free_lvector( long *v, int n1 );
  66. void     free_uvector( unsigned *v, int n1 );
  67. void     free_ulvector( unsigned long *v, int n1 );
  68. void    free_flagvector( Flag *v, int n1 );
  69. void    free_pvector( char **v, int n1 );
  70.  
  71.  
  72. #endif
  73.  
  74.