Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

keil c (memcpy and fmod) problems

Status
Not open for further replies.

lgeorge123

Full Member level 2
Joined
Jun 13, 2004
Messages
130
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
Hong Kong
Activity points
1,403
keil string pointers

I wrote a keil c and compiled it and there are some errors .
#include <reg51.h>
#include <string.h>
#include <stdio.h>
unsigned char deg;
unsigned char font1[]={2,0,3,5};
unsigned char adr;
unsigned char k;
void rr()
{
memcpy(deg,font1[adr],1); compiler said illegal pointer
k=fmod(deg,2); compiler said missing function-prototype
......
}

Can someones give me suggestions ???? Thanks !!!!
 

memcpy microcontroller

Try:

memcpy(&deg,&font1[adr],1);
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top