Imitate database in C

Posted by Mohit Deshpande on Stack Overflow See other posts from Stack Overflow or by Mohit Deshpande
Published on 2010-04-07T23:40:36Z Indexed on 2010/04/07 23:43 UTC
Read the original article Hit count: 338

Filed under:
|
|
|

I am fairly new to C. (I have good knowledge of C# [Visual Studio] and Java [Eclipse]) I want to make a program that stores information. My first instinct was to use a database like SQL Server. But I don't think that it is compatible with C. So now I have two options:

  • Create a struct (also typedef) containing the data types.
  • Find a way to integrate SQLite through a C header file

Which option do you think is best? Or do you have another option? I am kind of leaning toward making a struct with a typedef, but could be pursuaded to change my mind.

© Stack Overflow or respective owner

Related posts about database

Related posts about c