comparison mcabber/src/utils.c @ 1361:0562106d20c1

Update some copyrights
author Mikael Berthe <mikael@lilotux.net>
date Sun, 11 Nov 2007 14:36:48 +0100
parents 382ec54b584e
children cd0d63024923
comparison
equal deleted inserted replaced
1360:8613d3f4ae91 1361:0562106d20c1
1 /* 1 /*
2 * utils.c -- Various utility functions 2 * utils.c -- Various utility functions
3 * 3 *
4 * Copyright (C) 2005-2007 Mikael Berthe <mikael@lilotux.net> 4 * Copyright (C) 2005-2007 Mikael Berthe <mikael@lilotux.net>
5 * ut_* functions are derived from Cabber debug/log code. 5 * ut_* functions are derived from Cabber debug/log code.
6 * from_iso8601() comes from the Gaim project. 6 * from_iso8601() comes from the Pidgin (libpurple) project.
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or (at 10 * the Free Software Foundation; either version 2 of the License, or (at
11 * your option) any later version. 11 * your option) any later version.
208 208
209 return ((ret == -1) ? -1 : 0); 209 return ((ret == -1) ? -1 : 0);
210 } 210 }
211 211
212 // from_iso8601(timestamp, utc) 212 // from_iso8601(timestamp, utc)
213 // This function came from the Gaim project, gaim_str_to_time(). 213 // This function came from the Pidgin project, gaim_str_to_time().
214 // (Actually date may not be pure iso-8601) 214 // (Actually date may not be pure iso-8601)
215 // Thanks, guys! 215 // Thanks, guys!
216 // ** Modified by somian 10 Apr 2006 with advice from ysth. 216 // ** Modified by somian 10 Apr 2006 with advice from ysth.
217 time_t from_iso8601(const char *timestamp, int utc) 217 time_t from_iso8601(const char *timestamp, int utc)
218 { 218 {