/* Copyright 2003-2023 James F. Duff */
/* License and disclaimer: http://www.eight-cubed.com/disclaimer.html */

#define __NEW_STARLET 1

#include <stdio.h>
#include <stdlib.h>
#include <ssdef.h>
#include <stsdef.h>
#include <descrip.h>
#include <lib$routines.h>

#include "errchk.h"


/******************************************************************************/
int main (void) {

static int r0_status;

static $DESCRIPTOR (log_d, "LIB_DELETE_LOGICAL_TEST");
static $DESCRIPTOR (eqv_d, "the quick brown fox jumps over the lazy dog");
static $DESCRIPTOR (tbl_d, "LNM$PROCESS_TABLE");

    /*
    ** Define a logical so we can delete it...
    */
    r0_status = lib$set_logical (&log_d,
                                 &eqv_d,
                                 &tbl_d,
                                 0,
                                 0);
    errchk_sig (r0_status);

    r0_status = lib$delete_logical (&log_d,
                                    &tbl_d);
    errchk_sig (r0_status);
}
                  

Back to the master examples list.