A tiling window manager
at master 40 lines 994 B view raw
1/* 2 * Copyright (C) 2017 3 * Jeremie Courreges-Anglas <jca@wxcvcbn.org> 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License as published by the Free 7 * Software Foundation; either version 2 of the License, or (at your option) 8 * any later version. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 * You should have received a copy of the GNU General Public License along with 16 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple 17 * Place, Suite 330, Boston, MA 02111-1307 USA. 18 */ 19 20#include "sdorfehs.h" 21 22#include <langinfo.h> 23 24int 25isu8char(char c) 26{ 27 return (c) & 0xC0; 28} 29 30int 31isu8start(char c) 32{ 33 return ((c) & 0xC0) == 0xC0; 34} 35 36int 37isu8cont(char c) 38{ 39 return ((c) & 0xC0) == 0x80; 40}