Search Results

Search: Posts Made By: chap
Forum: Programming 10-11-2012
1,668
Posted By chap
Declare member of struct as a pointer in c
I have a uint8_t *C = malloc(24*sizeof(uint8_t));

I need to send some integers and this *C to another node(in ad hoc network). So I am going to use a struct

` struct fulMsg {
int msgType; ...
Forum: Programming 09-27-2012
3,135
Posted By chap
thanks both of you,
thanks both of you,
Forum: Programming 09-26-2012
3,135
Posted By chap
thanks for your advice and did up to some level. ...
thanks for your advice and did up to some level.

In my case I have to deal with 3 different parties. TinyECC(nesc), native c and contiki. What I am doing is convert nesc in to c then use it in...
Forum: Programming 09-24-2012
3,135
Posted By chap
yeah,,something wrong, I'm getting an another...
yeah,,something wrong, I'm getting an another error

---------- Post updated at 09:59 PM ---------- Previous update was at 09:37 PM ----------

in nesc code it use like this
uint8_t...
Forum: Programming 09-24-2012
3,135
Posted By chap
in actual case I am using KEY_BIT_LEN as 160, and...
in actual case I am using KEY_BIT_LEN as 160, and I used C_len like this
C_len = 2*KEYDIGITS*NN_DIGIT_LEN + 1 + 20 + 20; and use it in function,,,something wrong with it?

and I can't understand...
Forum: Programming 09-24-2012
3,135
Posted By chap
First of all thanks very much for your...
First of all thanks very much for your explanation, I did most of them blindly. I initialized C and it works now. :b:
uint8_t *C = malloc(sizeof(uint8_t));

thanks in advance
Forum: Programming 09-24-2012
3,135
Posted By chap
Segmentation fault when debugging in C
Dear all,

Currently I am implementing ECC protocols. I used tinyECC package to port ecc to contiki os. This giving me a segmentation fault.

I followed some article Debugging Segmentation...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 09:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy