@42seoul : (2020.07.01 ~ 2020.07.15)
- μ΄ νλ‘μ νΈλ fdμ μ μ₯λ νμΌ λ΄μ©μ "\n" κ°ν λ¨μ μ€λ‘ λ°ννλ ν¨μλ₯Ό ꡬνν©λλ€.(The aim of this project is to make you code a function that returns a line ending with a newline, read from a file descriptor.)
Type | Function | Description |
---|---|---|
file read |
get_next_line(int fd, char **line) | Write a function which returns a line read from a file descriptor, without the newline. |
- fd κ΄λ¦¬μ static variableμ νμ©νλ λ°©λ²μ λ°°μΈ μ μμμ΅λλ€.
- pythonμ read.csv() ν¨μλ₯Ό λ§λ λ€κ³ νμ λ λ¨μν "\n" κ°ν λ¨μλ‘ νμ λλκ³ sep(ꡬλΆμ) λ¨μλ‘ μ΄μ λλ μ μλλ° Cμμλ μ΄μ Libft νλ‘μ νΈμ Get_next_line νλ‘μ νΈ ν¨μλ₯Ό ν©μΉλ©΄ μ½κ² read.csv() κ°μ ν¨μλ₯Ό λ§λ€ μ μλ€.
- Read File
- Iris.csv(λΆκ½ λ°μ΄ν°)λ₯Ό "\n"κ°ν λ¨μλ‘ μ½κΈ° -> get_next_line()
- κ°ν λ¨μλ‘ μ½μ λ°μ΄ν° user_output μΌλ‘ μ μ₯
- diff user_output ./Iris.csv