Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_stsco http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
      D_STSCO

SUMMARY
   d_stsco(SET,ts[,dbn])
   int SET;
   ULONG ts;
   int dbn;

ARGUMENTS
   SET       The set type for whose current member the last access timestamp
             is to be set.

   ts        A ULONG (unsigned long) variable to containing timestamp value.

   dbn       (Optional) The number of the database containing the record.


DESCRIPTION
   Function d_stsco assign the last access timestamp for the current owner
   of SET from the usigned long variable ts.

--------------------------------------------------------------------------
Note:
   This function should be used with function d_csoset to restore the current
   member's database address and last access timestamp, for those record
   types whitch are timestamped.
--------------------------------------------------------------------------

CURRENCY CHANGES
   None

RETURN CODES
   -2   S_INVSET       Invalid set type. Probably passed a record or field
                       type instead of a set type.

   -9   S_NOCO         The current owner is null.

   -41  S_TIMESTAMP    The current owner record type is not timestamped.

EXAMPLE


   DB_ADDR dba;
   ULONG   ts ;
   ..
   /* save current (timestamped) author on stac for later processing */
   d_csoset(HAS_PUBLISHED,&dba);
   d_gtsco (HAS_PUBLISHED,&ts);
    ..
   /* restore saved author os owner of has_published */
   d_csoset(HAS_PUBLISHED,&dba);
   d_stsco (HAS_PUBLISHED,ts);
    ..

See Also: d_csoget d_csoset d_gtscm d_gtsco d_gtscr d_stscm

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson