Skip to content

Commit 3d75989

Browse files
committed
completed task
1 parent 5b3e7ac commit 3d75989

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

0x12-singly_linked_lists/100-first.c

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#include <stdio.h>
2-
3-
/**
4-
* bmain - function executed before main
5-
* Return: no return.
6-
*/
7-
8-
void __attribute__ ((constructor)) bmain()
9-
{
10-
printf("You're beat! and yet, you must allow");
11-
printf(",\nI bore my house upon my back!\n");
12-
}
1+
#include <stdio.h>
2+
3+
/**
4+
* bmain - function executed before main
5+
* Return: no return.
6+
*/
7+
8+
void __attribute__ ((constructor)) bmain()
9+
{
10+
printf("You're beat! and yet, you must allow");
11+
printf(",\nI bore my house upon my back!\n");
12+
}
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
SECTION .data
2-
msg: db "Hello, Holberton", 0
3-
fmt: db "%s", 10, 0
4-
5-
SECTION .text
6-
extern printf
7-
global main
8-
main:
9-
mov esi, msg
10-
mov edi, fmt
11-
mov eax, 0
12-
call printf
13-
14-
mov eax, 0
15-
ret
1+
SECTION .data
2+
msg: db "Hello, Holberton", 0
3+
fmt: db "%s", 10, 0
4+
5+
SECTION .text
6+
extern printf
7+
global main
8+
main:
9+
mov esi, msg
10+
mov edi, fmt
11+
mov eax, 0
12+
call printf
13+
14+
mov eax, 0
15+
ret

0 commit comments

Comments
 (0)