tout foncioooooone
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* f_bonus_print.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* By: hulamy <hulamy@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/05/27 13:46:29 by hulamy #+# #+# */
|
||||
/* Updated: 2019/06/01 15:00:01 by hulamy ### ########.fr */
|
||||
/* Updated: 2019/06/01 16:18:58 by hulamy ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/03/01 13:29:05 by vmanzoni #+# #+# */
|
||||
/* Updated: 2019/06/01 14:49:01 by hulamy ### ########.fr */
|
||||
/* Updated: 2019/06/01 15:53:31 by vmanzoni ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -75,6 +75,8 @@ void check_file_errors(char *file, int *dope)
|
||||
print_error_extended(3, dope);
|
||||
i++;
|
||||
}
|
||||
if (file[i - 1] == '\n')
|
||||
print_error_extended(3, dope);
|
||||
if (line_nbr < 4)
|
||||
print_error_extended(4, dope);
|
||||
if (!dope[3] && line_nbr > 129)
|
||||
|
||||
11
f_print.c
11
f_print.c
@@ -1,7 +1,7 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* print.c :+: :+: :+: */
|
||||
/* f_print.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: hulamy <hulamy@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
@@ -13,8 +13,8 @@
|
||||
#include "fillit.h"
|
||||
|
||||
/*
|
||||
** function that print a map of height and width
|
||||
** usefull to print tetris
|
||||
** Function that print a map of height and width
|
||||
** useful to print tetris
|
||||
*/
|
||||
|
||||
void print_sized_map(unsigned int *tab, int width, int height, char letter)
|
||||
@@ -44,7 +44,7 @@ void print_sized_map(unsigned int *tab, int width, int height, char letter)
|
||||
/*
|
||||
** Print the final map with the letters
|
||||
** if flag value is 0 -> print moulinette version
|
||||
** if flag value is 0 -> print in color
|
||||
** if flag value is p -> print in color
|
||||
*/
|
||||
|
||||
char *init_print_map(t_fillist *list, int size)
|
||||
@@ -53,7 +53,8 @@ char *init_print_map(t_fillist *list, int size)
|
||||
int i;
|
||||
int j;
|
||||
|
||||
map = (char *)malloc(sizeof(*map) * (size * size + 1));
|
||||
if (!(map = (char *)malloc(sizeof(*map) * (size * size + 1))))
|
||||
return (NULL);
|
||||
map[size * size] = '\0';
|
||||
i = -1;
|
||||
while (++i < size * size)
|
||||
|
||||
20
fillit.dSYM/Contents/Info.plist
Normal file
20
fillit.dSYM/Contents/Info.plist
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.xcode.dsym.fillit</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>dSYM</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
||||
4
main.c
4
main.c
@@ -6,7 +6,7 @@
|
||||
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/02/12 13:20:48 by vmanzoni #+# #+# */
|
||||
/* Updated: 2019/06/01 14:40:58 by hulamy ### ########.fr */
|
||||
/* Updated: 2019/06/01 15:27:22 by vmanzoni ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -30,7 +30,7 @@ int *create_dope(char *av, int mdp)
|
||||
|
||||
comp = "dope";
|
||||
if (!(dope = (int*)malloc(sizeof(*dope) * 4)))
|
||||
return (NULL);
|
||||
return (0);
|
||||
i = 0;
|
||||
while (i < 4)
|
||||
dope[i++] = 0;
|
||||
|
||||
Reference in New Issue
Block a user