We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aplicar o estilo de formatação de código definido ao código escrito. Utilizar a branch formatting para fazer isso
⚠️ Ao contribuir com a aplicação fique atento para permanecer aos padrões desse repositório:
snake_case
PascalCase
int min(int i, int j) { if (i > j) return j; else return i; }
int fatorial(int n) { int fatorial = 1 for (int i = 1; i < n + 1; i++) fatorial *= i; return fatorial; }
#define
#define PORT 8074 #define CONTROL_PORT 8090 #define PKG_SIZE 10000 struct segment { uint32_t seq_number; uint16_t orig_port; uint16_t dest_port; uint16_t checksum; uint8_t flags; uint8_t data[DATA_SIZE]; }; //Variáveis globais pthread_t KERNEL; int END_KERNEL = FALSE; int USER_TYPE; uint16_t REAL_SENDER_PORT; uint16_t REAL_RECEIVER_PORT;
Inserir espaços:
(
switch (a) if (a < b) a++; for (int i = 0; i < a; i++) while (a > 10)
if (a == b) return a
if ((a < b && b == a) || a > c) return a
,
int a = a + (i * b) % a
if (a == NULL) return -1;
a = b + a;
*
int* array = a;
TYPE* var = (TYPE*) malloc(sizeof(TYPE));
int a
The text was updated successfully, but these errors were encountered:
gustavooquinteiro
luisgrappi
viniciusPintoF
brunobdcorreia
tarcisiofonseca
trabalhadorderedes1201
No branches or pull requests
Aplicar o estilo de formatação de código definido ao código escrito.
Utilizar a branch formatting para fazer isso
snake_case
PascalCase
#define
, structs e variáveis globais devem ser alinhados de acordo com o maior nome, com TAB, assim:Inserir espaços:
(
, exemplo:if (a == b) return a
if ((a < b && b == a) || a > c) return a
,
int a = a + (i * b) % a
- Exceção: números negativos, exemplo:
if (a == NULL) return -1;
a = b + a;
*
do lado do tipo, exemplo:int* array = a;
TYPE* var = (TYPE*) malloc(sizeof(TYPE));
int a
;The text was updated successfully, but these errors were encountered: