mirror of
https://github.com/jeremysrand/abCalc.git
synced 2024-12-27 21:29:22 +00:00
32 lines
363 B
C
32 lines
363 B
C
/*
|
|
abCOpClear.c
|
|
By: Jeremy Rand
|
|
*/
|
|
|
|
|
|
#include <math.h>
|
|
#include <stdio.h>
|
|
|
|
#include "abCStack.h"
|
|
|
|
#include "ops/abCOp.h"
|
|
#include "ops/abCOpClear.h"
|
|
|
|
|
|
#define CLEAR_NAME "CLEAR"
|
|
|
|
|
|
static void clearExecute(void);
|
|
|
|
|
|
void abCalcOpClearInit(void)
|
|
{
|
|
abCalcOpRegister(CLEAR_NAME, clearExecute);
|
|
}
|
|
|
|
|
|
void clearExecute(void)
|
|
{
|
|
abCalcStackClear();
|
|
}
|