diff options
Diffstat (limited to 'crypto/stack/stack.c')
-rw-r--r-- | crypto/stack/stack.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index 9cc0a82962..d2b2a6d293 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -332,3 +332,10 @@ void sk_sort(STACK *st) st->sorted=1; } } + +int sk_is_sorted(const STACK *st) + { + if (st) + return 1; + return st->sorted; + } |