Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- char sz[99] = "SONY_";
- int _strlen(const char *psz);
- ////////////////////////////////////////////////////
- int main() //
- {
- strcat(sz, "Pictures");
- printf("%s \n", sz);
- printf("%d\n", strlen("TDK"));
- }
- ////////////////////////////////////////////////////
- int _strlen(const char *psz) //
- {
- int nRes = 0;
- return nRes;
- }
- /*
- #include <stdio.h>
- #include <string.h>
- struct T
- {
- int n;
- char c;
- char sz[34];
- }t1, t2;
- struct T t3;
- void foo(struct T *p);
- ////////////////////////////////////////////////////
- int main() //
- {
- struct T t4, t5;
- t4.n = 1333;
- t4.c = 'F';
- strcpy(t4.sz, "SONY");
- foo(&t5);
- }
- /////////////////////////////////////////////////////
- void foo(struct T *p) //
- {
- printf("p->n = %d \n", p->n );
- printf("p->c = %d \n", p->c );
- printf("p->sz = %s \n", p->sz);
- }
- */
- /*
- #include <stdio.h>
- int n = 72;
- char c = 72;
- ////////////////////////////////////////////////////
- int main() //
- {
- if(n == 5) { printf("May \n"); goto L_01; }
- if(n == 6) { printf("June \n"); goto L_01; }
- if(n == 70) { printf("SONY 70 \n"); goto L_01; }
- printf("Error !!! \n");
- L_01: printf("c = %c \n", c);
- }
- */
- /*
- #include <stdio.h>
- int n = 5;
- char c = 70;
- ////////////////////////////////////////////////////
- int main() //
- {
- switch(c)
- {
- case 5: printf("May \n");
- break;
- case 6: printf("June \n");
- break;
- case 70: printf("SONY 70 \n");
- break;
- default: printf("Error !!! \n");
- }
- printf("c = %c \n", c);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement