Skip to content

Commit

Permalink
Deployed 1734acb with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 24, 2024
1 parent f331cc2 commit 64bd7c0
Show file tree
Hide file tree
Showing 20 changed files with 204 additions and 31 deletions.
4 changes: 2 additions & 2 deletions appendix/unit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6613,7 +6613,7 @@ <h2 id="modalites-devaluation-et-de-validation">Modalités d'évaluation et de v
<h3 id="directives">Directives<a class="headerlink" href="#directives" title="Lien permanent">¤</a></h3>
<ul>
<li>En cas d'absence à un quiz, la note de 1.0 est donnée.</li>
<li>En cas de plagiat, le <a href="https://fr.wikipedia.org/wiki/Dilemme_du_prisonnier#:~:text=Le%20dilemme%20du%20prisonnier%2C%20%C3%A9nonc%C3%A9,est%20jou%C3%A9%20qu'une%20fois.">dilemme du prisonnier</a> s'applique.</li>
<li>En cas de plagiat, le <a href="https://fr.wikipedia.org/wiki/Dilemme_du_prisonnier">dilemme du prisonnier</a> s'applique.</li>
</ul>


Expand All @@ -6637,7 +6637,7 @@ <h3 id="directives">Directives<a class="headerlink" href="#directives" title="Li
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">19 juillet 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
172 changes: 172 additions & 0 deletions assets/images/rot13.drawio

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion course-c/00-preface/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6019,7 +6019,7 @@ <h2 id="colophon">Colophon<a class="headerlink" href="#colophon" title="Lien per
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">10 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
4 changes: 2 additions & 2 deletions course-c/05-introduction/c-lang/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6120,7 +6120,7 @@ <h2 id="le-c-et-les-autres">Le C et les autres...<a class="headerlink" href="#le
<td>Finance, banque</td>
</tr>
<tr>
<td><a href="https://fr.wikipedia.org/wiki/Basic_(langage)">Basic</a></td>
<td><a href="https://fr.wikipedia.org/wiki/Cobol">Basic</a></td>
<td>1964</td>
<td>Enseignement</td>
</tr>
Expand Down Expand Up @@ -6984,7 +6984,7 @@ <h2 id="exercices-de-revision">Exercices de Révision<a class="headerlink" href=
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">23 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
4 changes: 2 additions & 2 deletions course-c/05-introduction/programming/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6487,7 +6487,7 @@ <h2 id="historique">Historique<a class="headerlink" href="#historique" title="Li
</dd>
<dt>1801</dt>
<dd>
<p><a href="https://fr.wikipedia.org/wiki/M%C3%A9tier_%C3%A0_tisser_Jacquard">Métier à tisser Jacquard</a> programmable avec des cartes perforées.</p>
<p><a href="https://fr.wikipedia.org/wiki/M%C3%A9tier_Jacquard">Métier à tisser Jacquard</a> programmable avec des cartes perforées.</p>
</dd>
<dt>1837</dt>
<dd>
Expand Down Expand Up @@ -6769,7 +6769,7 @@ <h2 id="exercices-de-revision">Exercices de révision<a class="headerlink" href=
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">9 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
2 changes: 1 addition & 1 deletion course-c/10-numeration/bases/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6263,7 +6263,7 @@ <h2 id="autres-bases">Autres bases<a class="headerlink" href="#autres-bases" tit
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">6 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
4 changes: 2 additions & 2 deletions course-c/10-numeration/numbers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6159,7 +6159,7 @@ <h3 id="bit-de-signe">Bit de signe<a class="headerlink" href="#bit-de-signe" tit
<li>Le double zéro (positif et négatif) est gênant.</li>
</ol>
<h3 id="complement-a-un">Complément à un<a class="headerlink" href="#complement-a-un" title="Lien permanent">¤</a></h3>
<p>Le <strong><span class="ycr-hashtag" data-index-entry="complément à un" data-tag="complement-a-un">complément à un</span></strong> est une méthode plus maline utilisée dans les premiers ordinateurs comme le <a href="https://fr.wikipedia.org/wiki/Control_Data_6600">CDC 6600</a> (1964) ou le <a href="https://en.wikipedia.org/wiki/UNIVAC_1100/2200_series">UNIVAC 1107</a> (1962). Il existe également un bit de signe, mais il est implicite.</p>
<p>Le <strong><span class="ycr-hashtag" data-index-entry="complément à un" data-tag="complement-a-un">complément à un</span></strong> est une méthode plus maline utilisée dans les premiers ordinateurs comme le <a href="https://fr.wikipedia.org/wiki/Control_Data_6600">CDC 6600</a> (<span class="ycr-hashtag" data-index-entry="1964" data-tag="1964">1964</span>) ou le UNIVAC 1107 (<span class="ycr-hashtag" data-index-entry="1962" data-tag="1962">1962</span>). Il existe également un bit de signe, mais il est implicite.</p>
<p>Le complément à un tire son nom de sa définition générique nommée <em>radix-complement</em> ou complément de base et s'exprime par :</p>
<div class="arithmatex">\[
b^n - y
Expand Down Expand Up @@ -6565,7 +6565,7 @@ <h3 id="multiplication">Multiplication<a class="headerlink" href="#multiplicatio
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">9 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
2 changes: 1 addition & 1 deletion course-c/15-fundations/control-structures/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7124,7 +7124,7 @@ <h2 id="exercices-de-revision">Exercices de révision<a class="headerlink" href=
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">17 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
4 changes: 2 additions & 2 deletions course-c/15-fundations/operators/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7364,7 +7364,7 @@ <h2 id="priorite-des-operateurs">Priorité des opérateurs<a class="headerlink"
<div class="language-text highlight"><pre><span></span><code><span id="__span-61-1"><a href="#__codelineno-61-1" id="__codelineno-61-1" name="__codelineno-61-1"></a>34, i, 0, [], ++, /, 5, 23, +, +, 0xFF, y, &lt;&lt;, &amp;, x, =
</span></code></pre></div>
<p>C'est une notation très utilisée en informatique pour les calculatrices et les compilateurs car elle permet de simplifier l'écriture des expressions mathématiques, et surtout s'affranchir du problème des priorités d'opérateurs.</p>
<p>L'algorithme de <a href="https://en.wikipedia.org/wiki/Shunting-yard_algorithm">Shunting Yard</a> permet de convertir une expression en notation infixée en une expression en notation polonaise inversée.</p>
<p>L'algorithme de <a href="https://fr.wikipedia.org/wiki/Algorithme_Shunting-yard">Shunting Yard</a> permet de convertir une expression en notation infixée en une expression en notation polonaise inversée.</p>
</div>
<h3 id="associativite">Associativité<a class="headerlink" href="#associativite" title="Lien permanent">¤</a></h3>
<p>L'associativité des opérateurs (<a href="https://en.wikipedia.org/wiki/Operator_associativity">operator associativity</a>) décrit la manière dont sont évaluées les expressions.</p>
Expand Down Expand Up @@ -7887,7 +7887,7 @@ <h2 id="exercices-de-revision">Exercices de révision<a class="headerlink" href=
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">20 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
4 changes: 2 additions & 2 deletions course-c/20-composite-types/generic-programming/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5894,7 +5894,7 @@ <h2 id="fonction-de-callback">Fonction de callback<a class="headerlink" href="#f
</span><span id="__span-11-8"><a href="#__codelineno-11-8" id="__codelineno-11-8" name="__codelineno-11-8"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">compar</span><span class="p">)(</span><span class="k">const</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="p">));</span>
</span></code></pre></div>
<h2 id="types-de-donnees-abstraits">Types de données abstraits<a class="headerlink" href="#types-de-donnees-abstraits" title="Lien permanent">¤</a></h2>
<p>Un <a href="https://fr.wikipedia.org/wiki/Type_abstrait">type de donnée abstrait</a> (<strong>ADT</strong> pour Abstract Data Type) cache généralement une structure dont le contenu n'est pas connu de l'utilisateur final. Ceci est rendu possible par le standard (<abbr title="Standard ISO/IEC 9899:1999">C99</abbr> §6.2.5) par l'usage de types incomplets.</p>
<p>Un <a href="https://en.wikipedia.org/wiki/Abstract_type">type de donnée abstrait</a> (<strong>ADT</strong> pour Abstract Data Type) cache généralement une structure dont le contenu n'est pas connu de l'utilisateur final. Ceci est rendu possible par le standard (<abbr title="Standard ISO/IEC 9899:1999">C99</abbr> §6.2.5) par l'usage de types incomplets.</p>
<p>Pour mémoire, un type incomplet décrit un objet dont on ne connaît pas sa taille en mémoire. L'exemple suivant déclare un nouveau type structure qui n'est alors pas (encore) connu dans le fichier courant :</p>
<div class="language-c highlight"><pre><span></span><code><span id="__span-12-1"><a href="#__codelineno-12-1" id="__codelineno-12-1" name="__codelineno-12-1"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">Unknown</span><span class="w"> </span><span class="o">*</span><span class="n">Known</span><span class="p">;</span>
</span><span id="__span-12-2"><a href="#__codelineno-12-2" id="__codelineno-12-2" name="__codelineno-12-2"></a>
Expand Down Expand Up @@ -5984,7 +5984,7 @@ <h2 id="types-de-donnees-abstraits">Types de données abstraits<a class="headerl
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">20 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
2 changes: 1 addition & 1 deletion course-c/25-architecture-and-systems/mcu/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5880,7 +5880,7 @@ <h2 id="timers">Timers<a class="headerlink" href="#timers" title="Lien permanent
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">1 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6054,7 +6054,7 @@ <h2 id="quest-ce-quun-programme">Qu'est-ce qu'un programme ?<a class="headerli
<li>Le <em>listing</em> assembleur (<code>.s</code>, <code>.asm</code>)</li>
<li>L'exécutable binaire (ELF, <code>.exe</code>, <code>.out</code>, <code>.dll</code>, <code>.so</code>, etc.)</li>
</ul>
<p>Un processus est l'état d'un programme en cours d'exécution. Lorsqu'un programme est exécuté, il devient processus pendant un temps donné. Les <a href="https://fr.wikipedia.org/wiki/Syst%C3%A8me_d'exploitation">systèmes d'exploitation</a> tels que Windows sont dits <a href="https://fr.wikipedia.org/wiki/Multitasking">multitâches</a>, il peuvent par conséquent faire tourner plusieurs processus en parallèle. Le temps processeur est ainsi partagé entre chaque processus.</p>
<p>Un processus est l'état d'un programme en cours d'exécution. Lorsqu'un programme est exécuté, il devient processus pendant un temps donné. Les <a href="https://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27exploitation">systèmes d'exploitation</a> tels que Windows sont dits <a href="https://fr.wikipedia.org/wiki/Multit%C3%A2che">multitâches</a>, il peuvent par conséquent faire tourner plusieurs processus en parallèle. Le temps processeur est ainsi partagé entre chaque processus.</p>
<p><figure id="_figure-1"><a class="glightbox" data-desc-position="bottom" data-height="auto" data-type="image" data-width="auto" href="../../../assets/images/vintage-programmer.jpg"><img alt="Programmeuse à côté de cartes perforées" src="../../../assets/images/vintage-programmer.jpg" width="60%"/></a><figcaption> Programmeuse en tenue décontractée à côté de 62'500 cartes perforées</figcaption></figure></p>
<h3 id="code-source">Code source<a class="headerlink" href="#code-source" title="Lien permanent">¤</a></h3>
<p>Le <strong>code source</strong> est généralement écrit par un ingénieur/développeur/informaticien. Il s'agit le plus souvent d'un fichier texte lisible par un être humain et souvent pourvu de commentaires facilitant sa compréhension. Selon le langage de programmation utilisé, la programmation peut être graphique comme avec les diagrammes <a href="https://fr.wikipedia.org/wiki/Langage_Ladder">Ladder</a> utilisés dans les automates programmables et respectant la norme <a href="https://fr.wikipedia.org/wiki/CEI_61131-3">IEC 61131-3</a>, ou <a href="https://fr.wikipedia.org/wiki/LabVIEW">LabView</a> un outil de développement graphique.</p>
Expand Down Expand Up @@ -6408,6 +6408,7 @@ <h2 id="entrees-sorties-standards">Entrées sorties standards<a class="headerlin
</span></code></pre></div>
<p>Dans cet exemple ci-dessus, le programme <span class="ycr-hashtag" data-index-entry="echo" data-tag="echo"><code>echo</code></span> prend en argument la chaîne de caractère <span class="ycr-hashtag" data-index-entry="Bonjour" data-tag="Bonjour"><code>Bonjour</code></span> qu'il envoie sur la sortie standard. Ce flux de sortie est relié au flux d'entrée du programme <code>tr</code> qui effectue une opération de <a href="https://fr.wikipedia.org/wiki/ROT13">ROT13</a> et envoie le résultat sur la sortie standard. Ce flux est ensuite redirigé sur le fichier <span class="ycr-hashtag" data-index-entry="data.txt" data-tag="data.txt"><code>data.txt</code></span>.
La commande suivante <span class="ycr-hashtag" data-index-entry="cat" data-tag="cat"><code>cat</code></span> lis le contenu du fichier dont le nom est passé en argument et écrit le contenu sur la sortie standard.</p>
<p><figure id="_figure-3"><img alt="Rot13" class="drawio-diagram" src="../../../assets/images/rot13.drawio"/><figcaption> Rot13</figcaption></figure></p>
<p>Dans le cas où un de ces programmes génère une alerte (<em>warning</em>), le texte ne sera pas transmis le long de la chaîne, mais simplement affiché sur la console. Il est donc une bonne pratique que d'utiliser le bon flux de sortie : <span class="ycr-hashtag" data-index-entry="stdout" data-tag="stdout"><code>stdout</code></span> pour la sortie standard et <span class="ycr-hashtag" data-index-entry="stderr" data-tag="stderr"><code>stderr</code></span> pour les messages de diagnostic et les erreurs.</p>
<h2 id="boucle-dattente">Boucle d'attente<a class="headerlink" href="#boucle-dattente" title="Lien permanent">¤</a></h2>
<p>Comme évoqué, un programme est souvent destiné à tourner sur un système d'exploitation. Un programme simple comme celui-ci :</p>
Expand Down Expand Up @@ -6466,7 +6467,7 @@ <h2 id="boucle-dattente">Boucle d'attente<a class="headerlink" href="#boucle-dat
<span class="md-icon" title="Dernière mise à jour">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">1 septembre 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">24 septembre 2024</span>
</span>


Expand Down
Loading

0 comments on commit 64bd7c0

Please sign in to comment.