About: Wrap function calls in a print statement   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

have you ever had a function in C: doSomething(a, b, c); and you want to see what it's printing out? this wraps that function so the output looks like this: doSomething(a,b,c): 37 c for it looks like printf("doSomething(a,b,c): \"%s\" ", doSomething(a,b,c)); :let @a = "0f(byt;iprintf("^[pa: "~@kb\"%s\" ", ^[$i)^[?%^Ml^]"

AttributesValues
rdfs:label
  • Wrap function calls in a print statement
rdfs:comment
  • have you ever had a function in C: doSomething(a, b, c); and you want to see what it's printing out? this wraps that function so the output looks like this: doSomething(a,b,c): 37 c for it looks like printf("doSomething(a,b,c): \"%s\" ", doSomething(a,b,c)); :let @a = "0f(byt;iprintf("^[pa: "~@kb\"%s\" ", ^[$i)^[?%^Ml^]"
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1435(xsd:integer)
Author
  • Peter Jenkins
Complexity
  • advanced
Created
  • 2006(xsd:integer)
ID
  • 1436(xsd:integer)
NEXT
  • 1437(xsd:integer)
Rating
  • 68(xsd:integer)
abstract
  • have you ever had a function in C: doSomething(a, b, c); and you want to see what it's printing out? this wraps that function so the output looks like this: doSomething(a,b,c): 37 c for it looks like printf("doSomething(a,b,c): \"%s\" ", doSomething(a,b,c)); kind of a pain to type often. i also try to make it so the cursor ends up over the s so that you can replace it with d, etc for printing things other than strings. again, this works if you type in the commands as they are depicted, but not with the let statement. if you want to do it by hand, do something like qt (to assign it to "t"). then type what's in between the quotes, starting with 0. :let @a = "0f(byt;iprintf("^[pa: "~@kb\"%s\" ", ^[$i)^[?%^Ml^]"
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software