[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Function pointers

From: Peter Bosscha
Subject: [avr-gcc-list] Function pointers
Date: Tue, 06 Mar 2001 12:04:34 +0200

Has anyone ever tried the following:
typedef struct {
  char name[8];
  char minchars;
  void (*func)(void);
} Cmnds;

/* Commands */
Cmnds PROGMEM c[] = {
 {"HELP", 1,help},
 {"DUMP", 1,dumpmem},
 {"",0, 0}
It compiles ok but the address for the function always comes out weird.
Any suggestions ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]