Paste number 138049: Code for http://stackoverflow.com/questions/17582216/lisp-cffi-let-and-memory

Paste number 138049: Code for http://stackoverflow.com/questions/17582216/lisp-cffi-let-and-memory
Pasted by: dmitry_vk
When:1 year, 1 week ago
Share:Tweet this! | http://paste.lisp.org/+2YIP
Channel:None
Paste contents:
Raw Source | XML | Display As

    extern "C" QApplication* create_application()
    {
      int c = 1;
      //char* v[1] = {(char*) "qapp"};
      char **v = new char*[2];
      v[0] = strdup("qapp");
      v[1] = NULL;
     
      QApplication* ret = new QApplication(c, v);
     
      return ret;
    }

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.