On 18/12/12 04:25, Marefe Serentas wrote:
int some_data[] =
{
-288, -153, 31, 24,205,110, 39, 88,
-281,145, 35,266, 63,-79, -103,-25,
53,145, -114, -274, 46, 60,220,205
};
typedef struct MainStruct
{
On 12/17/2012 11:25 PM, Marefe Serentas wrote:
> On 12/18/2012 12:38 AM, tutor-requ...@python.org wrote:
>> Re: Get the structure values from a c file
> I apologize for some syntax errors in my c file. I would like to correct
> my mistakes and append some lines in the c file to make it clearer.
>
>
On 12/18/2012 12:38 AM, tutor-requ...@python.org wrote:
Re: Get the structure values from a c file
I apologize for some syntax errors in my c file. I would like to correct
my mistakes and append some lines in the c file to make it clearer.
#define max (3)
#define max_data_size (9600*2*8)
On Sun, Dec 16, 2012 at 10:12 PM, Marefe Serentas wrote:
>
> I want to create a python script that will store the value of the structure
> MainStruct from the c file.
Try pycparser to parse C source code. To load a library and call its
functions you can use ctypes.
http://docs.python.org/2/libr
On 17/12/12 03:12, Marefe Serentas wrote:
I want to create a python script that will store the value of the
structure /MainStruct/ from the c file.
You will need to be a lot more specific about your requirements.
A structure is a data definition, it does not have a value.
It is like saying you
On 12/16/2012 10:12 PM, Marefe Serentas wrote:
> Hi, I need help.
>
> I want to create a python script that will store the value of the
> structure /MainStruct/ from the c file.
> Suppose my c file looks like this:
> --
> #define max (3)
>
> t