This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main() { | |
| int i = 0; | |
| int intarray[10] = {1, 2, 7, 4, 3, 7, 3, 9, 5, 0}; | |
| char chararray[10] = {'h', 'e', 'l', 'l', 'o', ' ', 'y', 'o', 'u', '\0'}; | |
| while (i < 10) { | |
| printf("%d\n", intarray[i]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The FUGPL License | |
| =================== | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software with the restriction that no part of | |
| it may be included in software projects that are solely distributed under | |
| strong copyleft restricted licenses. This license is *NOT* GPL compatible. | |
| There otherwise exist no restrictions on using this software, including |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| main(argc, argv) | |
| int argc; | |
| char *argv[]; | |
| { | |
| int i; | |
| argc--; | |
| for(i=1; i<=argc; i++) | |
| printf("%s%c", argv[i], i==argc? '\n': ' '); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <dirent.h> | |
| #include <stdio.h> | |
| void listdir(const char *name, int level) | |
| { | |
| DIR *dir; | |
| struct dirent *entry; |