diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-23 00:28:03 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-23 00:28:03 +0100 |
| commit | c90117251f11e03452ae9808ff8626016c7958a1 (patch) | |
| tree | b4ef9f0f562d3394e23af4a698ad35964f18bc23 /ft_strdup.s | |
| parent | 8e3a5ac569a3ccc1101b58fe8ef673f02b4961fb (diff) | |
| download | libasm-c90117251f11e03452ae9808ff8626016c7958a1.tar.gz libasm-c90117251f11e03452ae9808ff8626016c7958a1.tar.bz2 libasm-c90117251f11e03452ae9808ff8626016c7958a1.zip | |
Compiling with nasm
Diffstat (limited to 'ft_strdup.s')
| -rw-r--r-- | ft_strdup.s | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/ft_strdup.s b/ft_strdup.s index d96ad3b..fa28326 100644 --- a/ft_strdup.s +++ b/ft_strdup.s @@ -1,18 +1,22 @@ -# **************************************************************************** # -# # -# ::: :::::::: # -# ft_strdup.s :+: :+: :+: # -# +:+ +:+ +:+ # -# By: cacharle <marvin@42.fr> +#+ +:+ +#+ # -# +#+#+#+#+#+ +#+ # -# Created: 2019/11/22 03:04:32 by cacharle #+# #+# # -# Updated: 2019/11/22 21:19:29 by cacharle ### ########.fr # -# # -# **************************************************************************** # +; **************************************************************************** ; +; ; +; ::: :::::::: ; +; ft_strdup.s :+: :+: :+: ; +; +:+ +:+ +:+ ; +; By: cacharle <marvin@42.fr> +;+ +:+ +;+ ; +; +;+;+;+;+;+ +;+ ; +; Created: 2019/11/22 03:04:32 by cacharle ;+; ;+; ; +; Updated: 2019/11/23 00:19:26 by cacharle ;;; ;;;;;;;;.fr ; +; ; +; **************************************************************************** ; -.globl _ft_strdup +extern _ft_strlen +extern _ft_strcpy +extern _malloc -# char *ft_strdup(const char*); +global _ft_strdup + +; char *ft_strdup(const char*); _ft_strdup: push rbp mov rbp, rsp |
