Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brunexgeek authored Dec 8, 2024
1 parent be27afa commit 75c24b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ int main(int argc, char *argv[])

// initialize the parser (the desired SMBIOS version is 3.0)
struct ParserContext context;
if (smbios_init(&context, data, size, SMBIOS_3_0) != SMBERR_OK)
if (smbios_initialize(&context, data, size, SMBIOS_3_0) != SMBERR_OK)
return 1;

// iterate over the SMBIOS entries
const struct Entry *entry = NULL;
while (smbios_parse(&context, &entry) == SMBERR_OK)
while (smbios_next(&context, &entry) == SMBERR_OK)
{
// do something with the current entry
}
Expand Down

0 comments on commit 75c24b7

Please sign in to comment.