rec_post_commit()

Purpose

Posts and commits a record

Old name

#define postcommit rec_post_commit

Syntax

void rec_post_commit(dp4rec)

Parameters

short* dp4rec

Pointer to DP4 record

Description

The rec_post_commit() function posts and then commits a record. The calling program fails if the commit operation fails.

This function is implemented as:

rec_post_with_flags(rec,NO_CHECK);
db_update(FAIL_IF_ERROR);

This is a convenient function, and can save space if it is called a number of times.

See also

db_update(), rec_post(), db_commit()