Xlib help - Array of Structs

view story

http://www.unix.com – Hey guys! First of all english is not my main language so sorry for any english mistakes. Im from Portugal! 1. The problem statement, all variables and given/known data: Im having a problema creating and array of structs for a work i need to do. (xLib) 2. Relevant commands, code, scripts, algorithms: So i created a struct, that holds 4 ints: X = X position Y = Y postion dimX = horizontal dimension dimY = vertical dimension this 4 ints represent a rectangle. The struct: typedef struct _blocks { int X, Y ,dimX, dimY; } str_blocks; So now i want to assign values to this int's, but si (HowTos)