Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 07-31-2010, 07:07 AM   #1
Solid State Member
Join Date: Jun 2010
Posts: 8
Default lvalue required as etc... problem (C)

#include <stdio.h>

char shellcode[]=

(void) (*routine)();
(long) routine = &shellcode; //Problem line
printf("Size: %d bytes\n", sizeof(shellcode));


Btw, the shellcode just says "Hello World"
styxxxola is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 09:13 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0