C programming help required ....

Roger Oberholtzer roger
Sat Aug 27 03:43:13 PDT 2005


On Fri, 2005-08-26 at 11:50 -0500, Ben Duncan wrote:
> It would be something they entered one time while setting up the file.
> Probably will be done thru some sort of Data Entry routine so I can control
> it.

That should present no trouble.  I bet your numbers were already
conceptually compatible with the approach I suggested. It is just that
you should use the scanf '%x' to read then from a user and '%x' to print
them in ASCII. The actual integer is just used as is. Taking this
approach allows you to use bit fields (mask/shift) instead of odd math
to access the components in your numbers.

> 
> After that , the values will be held internally and the user cannot change them.
> This is because any "fix" or "rebuild" routines as well as any record routines
> will need access to them to modify the secondary index file.
> 
> LOL, I am working form the inside out on this database. So far I have gotten
> test routines that can create multi-value records. This is to/from a flat file
> for testing purposes. Once I complete and test the ability to add/insert/modify/extract
> the multi value attributes , and the necessary re-size of said attributes, It is off
> to seeing about fitting this to the GDBM datamanager.

I could not imagine that this would present any difficulty. It is really
SOP.

-- 
Roger Oberholtzer <roger at opq.se>



More information about the Linux-users mailing list