search for: tyd

Displaying 2 results from an estimated 2 matches for "tyd".

Did you mean: tbd
2009 Nov 13
1
[LLVMdev] dodgy use of c_str()
>From llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp: void DebugInfo::EmitGlobalVariable(GlobalVariable *GV, tree decl) { // Gather location information. expanded_location Loc = expand_location(DECL_SOURCE_LOCATION(decl)); DIType TyD = getOrCreateType(TREE_TYPE(decl)); const char *DispName = GV->getNameStr().c_str(); Isn't this use of c_str() dodgy, because the temporary string returned by Gv->getNameStr() will be destroyed at the end of the expression, so it's no longer valid to use the memory pointed to by Di...
2012 Dec 21
2
how can I import op.gz files with read.csv or otherwise
...re is the data set in question: x <- read.csv(file="ftp://ftp.ncdc.noaa.gov/pub/data/gsod/2012/285880-99999-2012.op.gz", skip = 1, sep = "") and "structure" returns some incomprehensible gibberish: > str(x) 'data.frame':   70 obs. of  6 variables:  $ X4àtYd...ÂÚ8.åWD...ëü.ïß.X.QTñVP..                                                                                                                      : Factor w/ 70 levels "\005~4èdŒÚíE\031y\020ÿíº\035JëïÒI˜Æí\021†BÆÌR{žYkv\035`“ì°a\017Z\021ÅsP’eÏhÞÇ""| __truncated__,..: 44 13 56 64 28 23...