|
Assembled 2
A column based text editor
|
Functions | |
| uint64_t | general_hash (char *string) |
| char * | fpath2abs (char *path, int options) |
Copyright (C) 2023-2024 awewsomegamer
This file is apart of Assembled.
Assembled is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
File containing functions which arent specific to any one file.
| char * fpath2abs | ( | char * | path, |
| int | options ) |
Create an absolute path from the given path
| char | *path - Relative or absolute path. If the path is already absolute, it will be returned in a new allocation. |
| int | options - Options for where the abolsute path should begin from. 0: The path will be absolute to the user's current working directory. 1: The path will be relative to ~/.config/assembled/. |
| uint64_t general_hash | ( | char * | string | ) |
Create a 64-bit hash from the given string input
| char | *string - a zero terminated string to hash |