c - address to string constant -


i addres of string assembler c, , need content of address. how it? google gives c++ examples reinterpret_cast, not working in c (i suppose). appreciate if note needed libs too, tenx

#include <stdio.h>  #include <stdlib.h>   unsigned long const1(void);   int main() {      printf("const: %d\n", const1());      return 0;  } 

if you've got address , know it's null terminated string, need treat string.

printf("%s", (char*)alleged_string_address); 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -