Command:
$ fastboot helpOutput:
usage: fastboot [OPTION...] COMMAND...
flashing:| #include <stdio.h> | |
| /** | |
| * Finds the maximum number between 2 numbers. | |
| * | |
| * @param n0 the first operand | |
| * @param n1 the second operand | |
| * @return the maximum number, any of the 2 numbers if the numbers are equal | |
| */ | |
| static inline int max0(int n0, int n1) { |
| #include <stdio.h> | |
| int main(void) { | |
| int x = 8; // define x | |
| int y; // define y | |
| // constant location (pointer) to non-constant data | |
| int* const ptr = &x; | |
| // an attempt to modifiy the data will succeed | |
| *ptr = 55; | |
| printf("%d\n", x); | |
| // an attempt to modify the memory location will fail |
| #include <stdio.h> | |
| int main(void) { | |
| int x = 8; // define x | |
| int y; // define y | |
| // constant pointer to constant data | |
| const int* const ptr = &x; | |
| printf("%d\n", x); | |
| } |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| /** | |
| * Headers | |
| */ | |
| struct JNINativeInterface_ { | |
| void *reserved0; | |
| void *reserved1; | |
| void *reserved2; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <inttypes.h> | |
| static inline void printAddress(void** ptr_address) { | |
| printf("%p\n", *ptr_address); | |
| } | |
| static inline void destroy(void** ptr_address) { | |
| free(*ptr_address); |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <inttypes.h> | |
| int main() { | |
| // allocating memory for 6 integers (total = 6 * 4 = 24 bytes) | |
| int* ptr = malloc(6 * sizeof(int)); | |
| for (int i = 0; i < 6; i++) { /* 6 * 4 = 24 bytes = 24 * 8 = 192 bits */ |
Command:
$ fastboot helpOutput:
usage: fastboot [OPTION...] COMMAND...
flashing:| // Online C compiler to run C program online | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <inttypes.h> | |
| typedef struct { | |
| int baud; | |
| uint8_t data; | |
| } uart; |
| /** | |
| * @brief: Shows a minimalistic example of dynamic arrays. | |
| * | |
| * @author pavl_g. | |
| */ | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<string.h> | |
| typedef struct { |
| #** | |
| #* Ccoffee Build tool, manual build, alpha-v1. | |
| #* Custom Includsions for GTKmm cpp wrapper | |
| #* dependencies '-I"/usr/include/glibmm-2.9.1/glib" -I"/usr/include/sigc++-2.0/sigc++" -I"/usr/include/giomm-2.4" -I"/usr/include/gtkmm-4.2.0/gtk"' | |
| #* | |
| #* @author pavl_g. | |
| #*# | |
| echo "Compiling the project" | |
| #1) define work directory |