1
0
Fork 0
mirror of https://github.com/tailix/libshmemq.git synced 2025-07-31 22:01:00 -04:00

Display error in example

This commit is contained in:
Alex Kotov 2021-08-17 13:38:41 +05:00
parent 9a52af9db2
commit 128cd8bbf8
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -88,6 +88,8 @@ int main()
} }
finalize: finalize:
if (shmemq_error != SHMEMQ_ERROR_NONE) printf("Error: %u.\n", shmemq_error);
printf("Destroy queue.\n"); printf("Destroy queue.\n");
SHMEMQ_DELETE(shmemq, NULL); SHMEMQ_DELETE(shmemq, NULL);