Ignore:
Timestamp:
Oct 17, 2012, 6:40:28 PM (7 years ago)
Author:
ksherdy
Message:

Updated to SOA representation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/gml2svg/lib/C/gml2svg/util.cpp

    r1705 r2475  
    1818
    1919extern int errno;
    20 
    21 char * layers_2_string(const char * layers [], int length)
    22 {
    23         int total_length = 0;
    24         int i;
    25         for(i=0;i<length;i++)
    26         {
    27                 total_length += strlen(layers[i]);
    28         }
    29 
    30         char * layers_string = new char[total_length + length + 1];
    31 
    32         strcpy(layers_string,layers[0]);
    33 
    34         for(i=1;i<length;i++)
    35         {
    36                 strcat(layers_string,"\n");
    37                 strcat(layers_string,layers[i]);
    38         }
    39 
    40         strcat(layers_string,"\0");
    41 
    42         return layers_string;
    43 }
    4420
    4521char * create_timestamp_filename()
Note: See TracChangeset for help on using the changeset viewer.