The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled C Code
Posted by: Function pointer Struct | May 25, 2009 @ 2:06pm
C Code
[
Download
]
test.h: #include <stdio.h> #include <stdlib.h> struct test { int (*foo)(int test1, int test2); int test; }; test.c: #include "test.h" int bar(int test1, int test2) { puts("test"); return 0; } foo = &bar; main.c: #include <stdio.h> #include <stdlib.h> #include "test.h" int main(void) { struct foobar; foo(1,2); return 0; }
Syntax Highlighting
[
Open in new window
]
Author Comments
test.c:7: varning: initiering skapar heltal från pekare utan typkonvertering
Rating
4.64 / 8
141 Votes
http://codebin.yi.org/287
page generated in 0.00 seconds