add: README
This commit is contained in:
parent
38ce8029e5
commit
9b1684a85a
31
README.md
Normal file
31
README.md
Normal file
@ -0,0 +1,31 @@
|
||||
# get_next_line
|
||||
|
||||
This is my implementation of the get_next_line project for the 42 school.
|
||||
|
||||
## Description
|
||||
|
||||
get_next_line is a function that reads a file descriptor (FD) line by line until the end of file (EOF) or an error occurs.
|
||||
|
||||
The function returns each line as a string, without the line break character '\n'.
|
||||
|
||||
The purpose of the project is to provide a function for reading lines from a file descriptor, which can be useful for various applications.
|
||||
|
||||
## Usage
|
||||
|
||||
To use the function, simply include the header file and call the function with the file descriptor as the first argument.
|
||||
|
||||
The function will return:
|
||||
- The line: if a line has been read
|
||||
- Empty string: if the end of file has been reached
|
||||
- NULL: if an error occurred
|
||||
|
||||
It is important to note that the function uses dynamic memory allocation to return the line as a string, so it is necessary to free the memory after use.
|
||||
|
||||
## Resources
|
||||
|
||||
- ![The project subject](./subject.pdf)
|
||||
- The standard C library documentation
|
||||
|
||||
## Authors
|
||||
|
||||
This project was created by Camille CHAUVET. If you have any questions or suggestions, feel free to contact me.
|
131
subject.pdf
Normal file
131
subject.pdf
Normal file
@ -0,0 +1,131 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta content='IE=Edge,chrome=1' http-equiv='X-UA-Compatible'>
|
||||
<meta content='width=device-width,height=device-height,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0' name='viewport'>
|
||||
<meta content='yes' name='mobile-web-app-capable'>
|
||||
<meta content='yes' name='apple-mobile-web-app-capable'>
|
||||
<meta content='translucent-black' name='apple-mobile-web-app-status-bar-style'>
|
||||
<meta content='Intranet 42' name='apple-mobile-web-app-title'>
|
||||
<meta content='on' http-equiv='cleartype'>
|
||||
<link href='https://cdn.intra.42.fr/' rel='preconnect'>
|
||||
<link href='https://signin.intra.42.fr/assets/42_logo_black-684989d43d629b3c0ff6fd7e1157ee04db9bb7a73fba8ec4e01543d650a1c607.png' rel='icon' type='image/png'>
|
||||
<link href='https://signin.intra.42.fr/assets/42_logo_black-684989d43d629b3c0ff6fd7e1157ee04db9bb7a73fba8ec4e01543d650a1c607.png' rel='shortcut icon' type='image/png'>
|
||||
<title>Intra Signin New</title>
|
||||
<meta name="csrf-param" content="authenticity_token" />
|
||||
<meta name="csrf-token" content="aQQWo5tAv+V6w2tSRFc4iq9f/kmWzgxP4ynnuIRicZeEQf8JSgoow9s4Bp9IQhfFzwPghzs3TeM8SxkQ6kWgQQ==" />
|
||||
<link rel="stylesheet" media="all" href="/assets/application-0f8ff68ca8056b0b2e36230747f7e997b432658c4a215497757d1ab87ae73b0d.css" />
|
||||
<style>
|
||||
.deprecated {
|
||||
-webkit-filter: grayscale(100%);
|
||||
filter: grayscale(100%); }
|
||||
</style>
|
||||
<script>
|
||||
(function() {
|
||||
this._environment = "production";
|
||||
|
||||
this._git_commit = "";
|
||||
|
||||
this._release = this._git_commit;
|
||||
|
||||
}).call(this);
|
||||
</script>
|
||||
|
||||
<body class=' '>
|
||||
<div class='notifications-flash-top-bar'>
|
||||
|
||||
</div>
|
||||
<div class='page'>
|
||||
<div class='page-sidebar left-main-container page-sidebar-fixed-left under-main-navbar'></div>
|
||||
<div class='login-page page-content page-content-fluid' data-turbolinks-scaffold>
|
||||
<div class='row'>
|
||||
<div class='main-top-menu'>
|
||||
|
||||
</div>
|
||||
<div class='col-lg-12'>
|
||||
<div class='login-container'>
|
||||
<div class='login-logo'>
|
||||
<img src="/assets/42_logo-7dfc9110a5319a308863b96bda33cea995046d1731cebb735e41b16255106c12.svg" alt="42 logo" />
|
||||
</div>
|
||||
<div class='login-between'></div>
|
||||
<div class='login-main'>
|
||||
<a class="btn btn-login-student" href="https://profile.intra.42.fr/users/auth/keycloak_student">Sign in as student</a>
|
||||
<a class="btn btn-login-admin" href="https://profile.intra.42.fr/users/auth/keycloak_admin">Sign in as staff</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="forgot-password-link" href="https://profile.intra.42.fr/legal">Read our terms and conditions</a><br />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div aria-hidden='true' aria-labelledby='smartModalLabel' class='modal fade' id='smartModal' role='dialog' tabindex='-1'>
|
||||
<div class='modal-dialog'>
|
||||
<div class='modal-content'>
|
||||
<div class='modal-header'>
|
||||
<button aria-hidden='true' class='close' data-dismiss='modal' type='button'>
|
||||
x
|
||||
</button>
|
||||
<h3 id='smartModalLabel'>
|
||||
|
||||
</h3>
|
||||
</div>
|
||||
<div class='modal-body'>
|
||||
<h4 class='note-title'></h4>
|
||||
</div>
|
||||
<div class='modal-footer'>
|
||||
<button aria-hidden='true' class='btn' data-dismiss='modal'>Cancel</button>
|
||||
<button class='send btn btn-primary'>Send</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div aria-hidden='true' aria-labelledby='flashModalLabel' class='modal fade' id='flashModal' role='dialog' tabindex='-1'>
|
||||
<div class='modal-dialog modal-lg'>
|
||||
<div class='modal-content'>
|
||||
<div class='modal-header'>
|
||||
<button aria-hidden='true' class='close' data-dismiss='modal' type='button'>
|
||||
x
|
||||
</button>
|
||||
<h3 id='flashModalLabel'></h3>
|
||||
</div>
|
||||
<div class='modal-body'>
|
||||
<h4 class='note-title'>Flash modal content (raw)</h4>
|
||||
</div>
|
||||
<div class='modal-footer'>
|
||||
<button aria-hidden='true' class='btn btn-block btn-default' data-dismiss='modal'>Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-cache="true" class="hide"></div>
|
||||
</body>
|
||||
<script async await src='https://www.googletagmanager.com/gtag/js?id=G-BJ34XNRJCV'></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-BJ34XNRJCV');
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var jsClasses = ["new_message", "topic-reply"];
|
||||
jsClasses.forEach(function(className) {
|
||||
Array.prototype.forEach.call(document.getElementsByClassName(className), function (e) {
|
||||
e.classList.add("js-hidden");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="/assets/application-fed7f3dd771fa014c9bc9723023f686a0aef20cadbc8fdab7fce5ffd3d1e46b7.js"></script>
|
||||
|
||||
</head>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user