You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include"math.h"#include"stdlib.h"#include"stdarg.h"#include"stdio.h"#include"string.h"voidfun(inta)
{
printf("Value of a is %d\n", a);
}
intmain()
{
// fun_ptr is a pointer to function fun() void (*fun_ptr)(int) =&fun;
/* The above line is equivalent of following two void (*fun_ptr)(int); fun_ptr = &fun; */// Invoking fun() using fun_ptr
(*fun_ptr)(10);
return0;
}
On the line void (*fun_ptr)(int) = &fun; there is a parse error with ( symbol. And this is probably because function pointers are not supported. Therefore, was wondering if you guys could please have Verifast support function pointers?
The text was updated successfully, but these errors were encountered:
eleehiga
changed the title
Request for support for lines like int (*send_func)(struct wl_closure *, struct wl_connection *))
Request for support for function pointers
Jun 27, 2022
eleehiga
changed the title
Request for support for function pointers
Request for support for local function pointer declarations
Aug 5, 2022
Currently in the code from https://www.geeksforgeeks.org/function-pointer-in-c/:
On the line
void (*fun_ptr)(int) = &fun;
there is a parse error with(
symbol. And this is probably because function pointers are not supported. Therefore, was wondering if you guys could please have Verifast support function pointers?The text was updated successfully, but these errors were encountered: