1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-12-22 20:36:01 +01:00

Changed to _qmckl_context_destroy_ to be consistent ZMQ

Changed _qmckl_context_destroy_ to be consistent ZMQ and other similar libraries.
This commit is contained in:
vijay 2020-10-15 09:00:22 +02:00 committed by GitHub
parent be5bea1f85
commit a3d8b6f402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,18 +90,18 @@ qmckl_context qmckl_context_copy(qmckl_context context) {
} }
#+END_SRC #+END_SRC
** =qmckl_context_delete= ** =qmckl_context_destroy=
To delete a new context, use =qmckl_context_delete()=. If the deletion To delete a new context, use =qmckl_context_destroy()=. If the deletion
failed, the function returns =0=. On success, the function returns =1= failed, the function returns =0=. On success, the function returns =1=
implying that the context has been freed. implying that the context has been freed.
#+BEGIN_SRC C :tangle qmckl_context.h #+BEGIN_SRC C :tangle qmckl_context.h
qmckl_context qmckl_context_delete(qmckl_context context); qmckl_context qmckl_context_destroy(qmckl_context context);
#+END_SRC #+END_SRC
#+BEGIN_SRC C :tangle qmckl_context.c #+BEGIN_SRC C :tangle qmckl_context.c
qmckl_context qmckl_context_delete(qmckl_context context) { qmckl_context qmckl_context_destroy(qmckl_context context) {
if (context == NULL) { if (context == NULL) {
return (qmckl_context) 0; return (qmckl_context) 0;