Eduardo, In line 1398, 'szTemp + 448' is the pointer to the buffer, '16' is the maximum length to be written by CPLPrintTime, next is the the format. Don't bother about the numbers 384, 448, 464, etc.
On Tue, Jun 22, 2010 at 9:49 PM, Eduardo Ramalho <[email protected]>wrote: > Hi! > > I am trying to print timestamps in WMS driver. > I would like to use GDAL CPLPrintTime to do that. > > I searched for use samples and found "pcidskdataset.cpp" but I don't > understand the "magic" numbers that appears "sztemp + XXX": > > Line 1396: > CPLPrintStringFill( szTemp + 384,"GDAL: Image band created > with GDAL", 64 ); > CPLPrintTime( szTemp + 448, 16, "%H:%M %d-%b-%y ", &oUpdateTime, "C" > ); > CPLPrintStringFill( szTemp + 464, "", 80 * 7 ); > > Can someone give me a hint how to use it ? > > Regards, > > Edu > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. /tʃaɪθənjə/ /kʊmɑr/ +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
