![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| snmpget in a perl programme | Harikrishna | Shell Programming and Scripting | 0 | 04-10-2008 02:59 AM |
| want to use output of c programme in expect | xander | Shell Programming and Scripting | 0 | 06-13-2007 09:36 AM |
| Unable to compile the c programme in unix | vasudeva | UNIX for Dummies Questions & Answers | 10 | 12-01-2006 01:58 PM |
| Help, How to add secondary IP addr to eth0, by programme? | pcman | High Level Programming | 2 | 07-16-2006 07:05 PM |
| porting a unix programme to linux??what matters | prasoon | UNIX for Advanced & Expert Users | 1 | 11-11-2005 07:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need help in a c programme
Dear Friends,
I ve two text files like re_im.dat Code:
13.7663000000 5.9572200000 10.2682000000 10.9345000000 5.0810700000 14.1132000000 Sarf.dat Code:
127 128 128 128 71 0 128 128 128 128 71 0 128 128 128 128 71 0 I ve function in c which does some calculation depending on these inputs from the above two file The first two arguments to my c function are input from the file re_im.dat, next 6 values to the function are from file Sarf.dat the next two arguments to the function are output from that function to another function . My problem is to read values and send as a pointer to the function.. The function is as below.. Code:
#include <stdio.h>
#include <math.h>
typedef unsigned int U;
typedef struct {U c; U d;} vec32;
void rf_model(double *input_re, double *input_im, vec32 *lsts, vec32 *vgagain, vec32 *dcout1i,\
vec32 *dcout1q, vec32 *dcout2i, vec32 *dcout2q, double *adc_input_re, double *adc_input_im){
}
need help badly.. regards, Prady |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
Where do you read in those values? Can you print them (using prinf()), so you can be sure? If the problem really is that you don't know how to read those values, check the function fscanf() or fgets(). Regards, ElJavi |
|
#3
|
|||
|
|||
|
Quote:
|
|||
| Google The UNIX and Linux Forums |