Welcome, Guest. Please login or register.

Author Topic: Using Execute() in C.  (Read 3078 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline nueron

  • Newbie
  • *
  • Join Date: Jul 2003
  • Posts: 22
  • Country: 00
    • Show all replies
    • http://www.austexsoftware.com
Re: Using Execute() in C.
« on: March 23, 2004, 06:24:12 AM »
Hello Sidewinder,

Your using sizeof() in the malloc statement, which I think is incorrect. Both sizeof(assembler_name) and sizeof(file_name) should both return a value of four(4) since this is the size of a pointer in bytes.

I'd use strlen() instead of sizeof()...

Hope this helps.

Regards,
Stephen.