search for: strvalu

Displaying 3 results from an estimated 3 matches for "strvalu".

Did you mean: strval
2015 May 28
1
[LLVMdev] Passing ConstantDataArray to GetElementPtrInst
...[13 x i8]* %myString, i32 0, i32 0 %tmp2 = call i32 (i8*, ...)* @printf( i8* %tmp1 ) nounwind A simple Hello World example. But I can't seem to figure out what I'm supposed to pass to the GetElementPtrInst. For example, this snippet: std::vector<llvm::Value*> args; auto strValue = llvm::ConstantDataArray::getString(llvm::getGlobalContext(), llvm::StringRef("Hello world.")); std::vector<llvm::Value*> index_vector; index_vector.push_back(Builder.getInt32(0)); index_vector.push_back(Builder.getInt32(0)); auto valueAsPtr = Builder.CreateGEP(str...
2000 Jan 06
1
bsd-snprintf.c and NeXT.
I'm wonder if anyone happens to have a simplier (slower) version of bsd-snprintf.c. It seems NeXT 3.3 (unsure about 4.2) is missing mprotect(). If I could get something to replace that for a while and fix some of theses utmp in login.c issues I may have a rough port NeXT to black hardware.=) Thanks
1999 Dec 10
0
snprintf from postgresql
...void dostr(char *str, int cut); static void dopr_outch(int c); static char *output; static void dopr(char *buffer, const char *format, va_list args) { int ch; long_long value; double fvalue; int longlongflag = 0; int longflag = 0; int pointflag = 0; int maxwidth = 0; char *strvalue; int ljust; int len; int zpad; output = buffer; while ((ch = *format++)) { switch (ch) { case '%': ljust = len = zpad = maxwidth = 0; longflag = longlongflag = pointflag = 0; nextch: ch = *format++; switch (ch) { case 0: dostr("**en...