Code Monkey home page Code Monkey logo

ft_printf's Introduction

Hello there ๐Ÿ‘‹

About Me

  • ๐Ÿ’ป Hotelier turned Software Engineer!
  • ๐Ÿ“ Currently living in Lisbon, Portugal
  • ๐ŸŠ Swimming @ 42 Lisbon
  • ๐Ÿ๏ธ Love motorcycles & cars

Tech Stack & Tools

C C++

Git HTML5 CSS3 JavaScript React NPM Docker

Visual Studio Code Vim Shell Script GNU BASH Github

Linux macOS Windows 11

forthebadge forthebadge forthebadge

GitHub Stats

GitHub Stats GitHub Stats

Contact Me

Gmail LinkedIn

ft_printf's People

Contributors

tiagochicoo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ft_printf's Issues

pointer being freed was not allocated

On test main, I have this issue:

this is my ft_printf: Helloa.out(50308,0x100604580) malloc: *** error for object 0x1004c3348: pointer being freed was not allocated
a.out(50308,0x100604580) malloc: *** set a breakpoint in malloc_error_break to debug
/bin/sh: line 1: 50308 Abort trap: 6 ./a.out
make: *** [cc] Error 134

`#include "./includes/ft_printf.h"

int main(void)
{
char *str;

str = (char *)malloc(sizeof(char) * 6);
if (str == NULL)
	return (0);
str = "Hello";

ft_printf("this is my ft_printf: %s\n", str);
printf("this is my string: %s\n", str);
return (0);

}`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.