/* 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 <libclidef.h>
#include <lib$routines.h>

#include "errchk.h"


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

static int r0_status;

static const int table_ind = LIB$K_CLI_LOCAL_SYM;

static $DESCRIPTOR (symbol_d, "LIB_DELETE_SYMBOL_TEST");
static $DESCRIPTOR (value_d, "All cows eat grass");

    /*
    ** Create a symbol so we can demo deleting it.
    */
    r0_status = lib$set_symbol (&symbol_d,
                                &value_d,
                                &table_ind);
    errchk_sig (r0_status);

    r0_status = lib$delete_symbol (&symbol_d,
                                   &table_ind);
    errchk_sig (r0_status);
}                  

Back to the master examples list.