1
0
mirror of https://github.com/KeyZox71/ft_minipowershell.git synced 2025-05-13 16:08:45 +02:00

📝」 doc: Added doc in .h for parsing and tokenizer

This commit is contained in:
2024-05-19 14:21:03 +02:00
parent 10915c369c
commit c4c8ca8bf1
3 changed files with 120 additions and 3 deletions

39
include/prompt.h Normal file
View File

@ -0,0 +1,39 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* prompt.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/19 13:48:05 by adjoly #+# #+# */
/* Updated: 2024/05/19 14:20:45 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PROMPT_H
# define PROMPT_H
/**
* @brief return the short hostname from /etc/hostname
* or return nixos if file doesn't exist or is empty
*
* @return (char *) The short hostname
*/
char *get_hostname(void);
/**
* @brief return the pwd (from the env), and if in home put a ~
* replacing the home directory
*
* @return (char *) the pwd
*/
char *get_pwd(void);
/**
* @brief return the full prompt
*
* @prompt (char *) the prompt
*/
char *get_prompt(void);
#endif