• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird - data file - termination with null

 
Robert Vilhelm
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I would like to ask somebody for your opinion, who has already faced this problem. (english is my second foreign language)

The text values (db-1x2.db) shorter than its max length are not terminated with null ('\0'), but followed with space ' ' without '\0'

But the specification exactly says:

All text values, and all fields (which are text only), contain only 8 bit characters, null terminated if less than the maximum length for the field.


I see thwo posibilities
1) I do exactly what specification says.
The spaces ' ' will be a part of the text value.
2) The right spaces will be truncated.

Thank you for your interest.
PS: Maybe it is not about the most complicated problem, but who knows
Robert
 
LianGuang Wang
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wow!i'm thinking this problem now!and be confused by this too!in my db file,is filled with space as your!who can help us???
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11865
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might be interested in this topic.

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic