Decode lock mode.c

407 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
407
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Decode lock mode.c

  1. 1. decode_lock_mode.c#include <stdio.h>#include <stdlib.h>#include <string.h>extern vaciar_cadena ();char *decode_lock_mode (int nro_decodificar) { static char dato_1[64]; vaciar_cadena (dato_1,64); switch (nro_decodificar) { case 1: strcpy (dato_1,"No Lock"); break; case 2: strcpy (dato_1,"Row Share"); break; case 3: strcpy (dato_1,"Row Exclusive"); break; case 4: strcpy (dato_1,"Share"); break; case 5: strcpy (dato_1,"Share Row Exclusive"); break; case 6: strcpy (dato_1,"Exclusive"); break; default: strcpy (dato_1,"NONE"); break; } return dato_1; } Página 1

×