- main
- types
2.1 char / signed char / unsigned char
2.2 int / unsigned int
2.3 short / signed short / unsigned short
2.4 long / unsigned long
2.5 float
2.6 double / long double
2.7 void - Operators : arithmetic, increment/decrement, assigment, relational, logical, sizeof
- Pointers: indirection (*) , address-of (&)
- Arrays
5.1 Strings:
size_t strlen(const char *s), char *strcpy(char *dest, const char *src), int strcmp(const char *s1, const char *s2), char *strcat(char *dest, const char *src); #include <string.h> - Loops: while, do while; for,
- Standard IO (stdin=0 , stdout=1, stderr= 2) #include <stdio.h>
- Return & Exit
- Function (declaration & definition)
- Basic functions
10.1 fprintf(File stream, const charformat,...) #include <stdio.h>
10.2 write(int fd, const void * buf, size_t count) & read(int fd, void *buf, size_t count) #include <unistd.h>
10.3 atoi(const char *_String)
10.4 int open(const char *path, int flags), int close(int fd)\ - Avanced functions
11.1 int fork()
11.2 exec: execlp,execv, execvp
11.3 Pipes: pipe(int pipefd[2]), dup,dup2
11.4 waitpid(pid_t pid, int *status, int options)
11.5 stat(const char *const _FileName, struct stat *const _Stat)
11.6 unsigned int alarm(unsigned int seconds
11.7 int sigaction(int signum, const struct sigaction *act,struct sigaction *oldact);
11.8 int kill(pid_t pid, int sig)\ - errno
- structures
Para compilar un programa c se usa el siguiente comando:
gcc ./NombreFichero.c -o ./NombreSalida
juangdelacruz / clasesdec Goto Github PK
View Code? Open in Web Editor NEWFor teaching purposes.
License: GNU General Public License v3.0