MCPcopy Index your code
hub / github.com/MapServer/MapServer / msDBFGetValueList

Function msDBFGetValueList

mapxbase.c:905–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905char **msDBFGetValueList(DBFHandle dbffile, int record, int *itemindexes, int numitems)
906{
907 const char *value;
908 char **values=NULL;
909 int i;
910
911 if(numitems == 0) return(NULL);
912
913 values = (char **)malloc(sizeof(char *)*numitems);
914 MS_CHECK_ALLOC(values, sizeof(char *)*numitems, NULL);
915
916 for(i=0;i<numitems;i++) {
917 value = msDBFReadStringAttribute(dbffile, record, itemindexes[i]);
918 if (value == NULL)
919 return NULL; /* Error already reported by msDBFReadStringAttribute() */
920 values[i] = msStrdup(value);
921 }
922
923 return(values);
924}

Callers 4

msTiledSHPNextShapeFunction · 0.85
msTiledSHPGetShapeFunction · 0.85
msSHPLayerNextShapeFunction · 0.85
msSHPLayerGetShapeFunction · 0.85

Calls 2

msDBFReadStringAttributeFunction · 0.85
msStrdupFunction · 0.85

Tested by

no test coverage detected