MISR Toolkit  1.5.1
MtkStringListFree.c
Go to the documentation of this file.
1 /*===========================================================================
2 = =
3 = MtkStringListFree =
4 = =
5 =============================================================================
6 
7  Jet Propulsion Laboratory
8  MISR
9  MISR Toolkit
10 
11  Copyright 2005, California Institute of Technology.
12  ALL RIGHTS RESERVED.
13  U.S. Government Sponsorship acknowledged.
14 
15 ============================================================================*/
16 
17 #include "MisrUtil.h"
18 #include "MisrError.h"
19 #include <stdlib.h>
20 
34  int strcnt,
35  char **strlist[] )
36 {
37  int i;
38 
39  if (strlist == NULL ||
40  *strlist == NULL)
41  return MTK_SUCCESS;
42 
43  for (i = 0; i < strcnt; ++i)
44  free((*strlist)[i]);
45  free(*strlist);
46  *strlist = NULL;
47 
48  return MTK_SUCCESS;
49 }
MTKt_status MtkStringListFree(int strcnt, char **strlist[])
Free string list.
MTKt_status
Definition: MisrError.h:11

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52