Decode lock mode.c
Upcoming SlideShare
Loading in...5
×
 

Decode lock mode.c

on

  • 403 views

 

Statistics

Views

Total Views
403
Views on SlideShare
403
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Decode lock mode.c Decode lock mode.c Document Transcript

  • 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